nus-cs2103-AY2223S2 / forum

12 stars 0 forks source link

Object diagram for Array #405

Closed jundatan closed 1 year ago

jundatan commented 1 year ago

image

How to draw the Object diagram for the parts attribute shown above if it contains some Item object?

damithc commented 1 year ago

@jundatan Standard containers such as Arrays and Lists are considered as merely internal mechanisms to hold multiple objects (as a normal variable can hold only one object). Therefore, they are omitted/implied in class and object diagrams. Just treat parts as a variable that can hold multiple objects.