Multiple compositions in UML -
in uml class diagram, technically correct have 2 possible compistion relationships leading 1 class?
i.e. have inventory class, has composition of inventory class. want have same relationship container class taking place of inventory.
so, can have 2 compositions, or need turn these aggregations?
you can have many composite associations on class level. each instance can part of 1 composition @ specific moment in time. uml superstructure says:
if whole has aggregationkind = composite part can included in @ 1 composite @ time
this article wrote tries explain difference: uml composition vs aggregation vs association
Comments
Post a Comment