Aggregation relationship is also a “has-a” relationship . The only difference between Aggregation and Composition is that in Aggregation, objects are not tightly coupled or don’t involve owning. All the objects are independent of each other and can exist even if the parent object gets deleted.
Read moreIs composition a relationship?
Composition is a restricted form of Aggregation in which two entities are highly dependent on each other. It represents part-of relationship . In composition, both entities are dependent on each other. When there is a composition between two entities, the composed object cannot exist without the other entity.14 Mar 2022
Read moreIs a relationship in aggregation?
Aggregation is a part of an association relationship . The composition is a part of an association relationship. There can be one-one, one-many, many-one, and many-many association present between the association classes. Aggregation is considered as a weak type of association.1 Şub 2022
Read more