UML association multiplicity

前端 未结 3 994
没有蜡笔的小新
没有蜡笔的小新 2020-12-28 17:49

I have a question about association multiplicity. I understand it, but for example if I would have:

 ---------            ---------
|         |1      *  |            


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-28 18:22

    No,the * means not that there's at least one Student in each Class at any time. But the other direction, looking from Student to Class, the multiplicity means that any student is in exactly one Class.

    For modelling reasons you might want to change the 1 multiplicity also to *, but this depends on your context.

提交回复
热议问题