C
C#•6mo ago
Blazing Badger

Can you solve this problem

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