What is a composition in Java?

Java 8Object Oriented ProgrammingProgramming

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.

raja
Updated on 30-Jul-2019 22:30:20

Advertisements