Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the difference between Aggregation and Composition?

0
Posted

What is the difference between Aggregation and Composition?

0

[Ans] Aggregation is a specialization of association, specifying a whole-part relationship between two objects. Composition is a stronger form of aggregation where the whole and parts have coincident lifetimes, and it is very common for the whole to manage the lifecycle of its parts. This suggests that in Aggregation a containee can live even if its container no longer exists but in the Composition they are more tightly coupled with each other in the sense that if one dies the other one too dies.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.