C
C#ā€¢2mo ago
Blazing Badger

Can you solve this problem

No description
10 Replies
mtreit
mtreitā€¢2mo ago
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.
Blazing Badger
Blazing Badgerā€¢2mo ago
Well, I am asking on how to use UML since I dunno how to use it
mtreit
mtreitā€¢2mo ago
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.
Blazing Badger
Blazing Badgerā€¢2mo ago
I wonder what you meant instances variables šŸ¤”
mtreit
mtreitā€¢2mo ago
No description
mtreit
mtreitā€¢2mo ago
I think they mean fields
Jimmacle
Jimmacleā€¢2mo ago
i don't think UML has a standard for properties
Pobiega
Pobiegaā€¢2mo ago
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)
canton7
canton7ā€¢2mo ago
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
Pobiega
Pobiegaā€¢2mo ago
fair
Want results from more Discord servers?
Add your server
More Posts