Aggregation and composition are two types of associations between objects or classes. The difference between aggregation and composition is that aggregation is an association among two objects that have the “has a” relationship while the composition is a special type of aggregation that describes ownership .20 Oca 2019
Read moreWhat is composition aggregation and association in OOP?
In Short, a relationship between two objects is referred to as an association, and an association is known as composition when one object owns another while an association is known as aggregation when one object uses another object .
Read moreWhat is composite aggregation?
A composite aggregation is a form of aggregation with strong ownership and coincident lifetime as part of the whole . Parts with non-fixed multiplicity may be created after the composite itself, but after being created they live and die with it.
Read more