nus-cs2103-AY2324S2 / forum

16 stars 0 forks source link

CD to OD #1056

Open RunjiaChen opened 6 months ago

RunjiaChen commented 6 months ago
image

Hello, my question is somewhat similar to the question in practice paper. If I draw the CD as shown above, will my corresponding OD still match? Or does my OD violate some rules of the CD. Since the multiplicity is not stated, can we assume that it can take on any values, including zero?

aureliony commented 6 months ago

Yes, I believe it is compliant.

jinhanfromNUS commented 6 months ago

Personally, I think since the multiplicity is not stated, it could be any numbers, including 0.

In this case, in the object diagram, we can interpretate as the chair object has 0 table object and table object has 0 chair object. Therefore, it is compliant.

Might be wrong tho.

damithc commented 6 months ago

Technically, not enough information to decide (because the multiplicity is not given)