nus-cs2103-AY2324S2 / forum

16 stars 0 forks source link

Multiplicity for variable #1061

Closed justincred closed 6 months ago

justincred commented 6 months ago

Hi for something like this without other constraints, is the multiplicty 0...1 since it can be null for class diagram? image

jinhanfromNUS commented 6 months ago

Yes. As far as I concern, if there is no statement, then it shall be 0..1.

damithc commented 6 months ago

Yes, a regular variable has 0..1 multiplicity by default.

justincred commented 6 months ago

thanks