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.

Lakshmi Srinivas
Lakshmi Srinivas

Programmer / Analyst / Technician

Updated on: 30-Jul-2019

168 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements