Difference between aggregation and composition ? | Sololearn: Learn to code for FREE!

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

5/24/2019 2:19:20 PM

Aaditya Deshpande

2 Answers

New Answer

+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/

+5

GAWEN STEASY Thank you !! All UML books are confusing the above concepts. But this one simply describes it, with nice example 👍