Does a relation (aggregation, composition) replace an attribute?

后端 未结 3 500
野趣味
野趣味 2020-12-30 15:41

I\'m pretty new at UML modelling so bear with me.

Say I have a class with an attribute students that is a list of Student instances. I have

3条回答
  •  离开以前
    2020-12-30 16:22

    An attribute helps to identify the structure of the object. Aggregation gives a high level overview that the object will contain one (or more) of another type. Neither replaces, but instead shows the relationship between the object types.

提交回复
热议问题