What is a composition in Java?



The composition is also a type of aggregation where the relationship is restrictive i.e. If two objects are in composition, the composed object will not exist without the other.

Updated on: 2019-07-30T22:30:20+05:30

332 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements