What is the difference between composition and aggregation? [duplicate]
What is the difference between composition and aggregation? can anybody give me a sample of this OOAD? Found here "Both aggregation and composition are special kinds of associations. Aggregation is used to represent ownership or a whole/part relationship, and composition is used to represent an even stronger form of ownership. With composition, we get coincident lifetime of part with the whole. The composite object has sole responsibility for the disposition of its parts in terms of creation and destruction. Moreover, the multiplicity of the aggregate end may not exceed one; i.e., it is