# Composition and aggregation?

**URL:** <https://forums.visual-paradigm.com/t/composition-and-aggregation/10560>\
**Category:** UML\
**Created:** [November 1, 2008, 5:38pm UTC](https://forums.visual-paradigm.com/t/composition-and-aggregation/10560 "2008-11-01T17:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous](https://avatars.discourse-cdn.com/v2/letter/a/8491ac/32.png) [@Anonymous](https://forums.visual-paradigm.com/u/Anonymous)\
**Post date:** [November 3, 2008, 8:33am UTC](https://forums.visual-paradigm.com/t/composition-and-aggregation/10560/1 "2008-11-03T08:33:55Z")

</div>

Hi friends,  
i want to know the exact difference between composition and aggregation?  
i searched in google and i got so many answers…  
but still i didnt understand it clearly…  
can anybody give me some programmatic example(with programs)??  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [November 3, 2008, 11:51am UTC](https://forums.visual-paradigm.com/t/composition-and-aggregation/10560/2 "2008-11-03T11:51:57Z")

</div>

Hi user,

Thanks for your post. An aggregation represents a “has-a” / “part-of” relationship. Composition is a stronger form of aggregation, it implies that a composite object has exclusive ownership of the parts object. You can refer to the image below about the relationships represented by aggregation and composition.

Hope this helps. If there is further inquiry, please do not hesitate to contact me.

Best regards,  
Lilian Wong   
 ![](https://forums.visual-paradigm.com/uploads/default/original/2X/3/3c50a711a72ae0a53ca8a8057219bf613b96763c.png)  
aggregation\_composition.png
