nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

Showing "Optional" in Object diagram #510

Closed richardcom closed 3 years ago

richardcom commented 3 years ago

Hi, in tutorial 9, subquestion 2, we chose to use object diagram to illustrate the following description. However, I am a little curious about how to show that the two assignments are optional in object diagram.

image

image

damithc commented 3 years ago

Use a normal object with isCompulsory = false?

richardcom commented 3 years ago

Thank you very much Prof Damith! I think I have misunderstood it initially haha, I first thought that optional means that we need to consider different situations regarding the various completion states of the assignments. But I now got it, it refers to the attributes of the assignment itself.