C
C#•7mo ago
Blazing Badger

Can you solve this problem

No description
10 Replies
mtreit
mtreit•7mo 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 BadgerOP•7mo ago
Well, I am asking on how to use UML since I dunno how to use it
mtreit
mtreit•7mo 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 BadgerOP•7mo ago
I wonder what you meant instances variables 🤔
mtreit
mtreit•7mo ago
No description
mtreit
mtreit•7mo ago
I think they mean fields
Jimmacle
Jimmacle•7mo ago
i don't think UML has a standard for properties
Pobiega
Pobiega•7mo 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•7mo 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•7mo ago
fair
Want results from more Discord servers?
Add your server