OOAD and UML

Next
1. What is the difference between Aggregation and Composition?

[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.

Email your feedback to OOPS, OOADs

Join javaquestions Group
Google
The Advertising Network

Disclaimers: No claims are made about the accuracy of any of the document presented in this site and no responsibility is taken for any errors. All the links provided in this site are individual compilation, however no claims are made about the accuracy and authenticity of the respective contents(including OOPS, OOADs).