10 Replies
Well, yes, but not going to do your homework for you.
If you have specific questions or are getting stuck, feel free to ask.
Also, if you are using C# for this class then that UML makes me sad.
Well, I am asking on how to use UML
since I dunno how to use it
I haven't used UML in about 20 years. But from what you are showing the upper box is data - fields and properties, and the lower box is constructors and other methods. How UML distinguishes between fields and properties I'm not sure.
I also really don't like the term
instance variables
here.I wonder what you meant instances variables
🤔
I think they mean fields
i don't think UML has a standard for properties
This UML was probably written for Java given the camelCase method names.
That said, the text above tells you what you should do. Make two classes, create the methods as specified (refer to the legend on the left for modifiers)
Java uses camelCase for fields as well though. I'm not sure I know a language which uses camelCase for methods and snake_case for fields
fair