nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

Attribute box in class diagrams #505

Closed Nikhilalalalala closed 3 years ago

Nikhilalalalala commented 3 years ago

image

In this question, (and as given in textbook), for the first diagram on the left, there is no blank rectangle for the attributes. However, in Prof Damith's hand drawing of class diagrams, there is usually an empty rectangle for the attributes box.

I was wondering if both are acceptable and which is preferred.

Thank you!

damithc commented 3 years ago

Not compulsory. OK to omit if empty. :-)

Nikhilalalalala commented 3 years ago

Thank you!