+ 2

Difference between aggregation and composition ?

In UML diagrams, Aggregation: Source <>-------Target (Hollow arrow) Composition Source <•>---------Target (Filled arrow) What is the meaning of this ?👆 Any real life example for better understanding? Thank you.

24th May 2019, 2:19 PM
Aaditya Deshpande
Aaditya Deshpande - avatar
2 Answers
+ 11
Assosiation is one main thing which is represented for relationships between two classes A and B. Aggregation and composition is two part of association The below two links specify this with real life examples if you faces difficulties to understand this ping me. http://aviadezra.blogspot.com/2009/05/uml-association-aggregation-composition.html?m=1 https://www.visual-paradigm.com/guide/uml-unified-modeling-language/uml-aggregation-vs-composition/
24th May 2019, 2:43 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 5
GAWEN STEASY Thank you !! All UML books are confusing the above concepts. But this one simply describes it, with nice example 👍
24th May 2019, 7:02 PM
Aaditya Deshpande
Aaditya Deshpande - avatar