OOP Concepts for Beginners: What is Composition?

added by DotNetKicks
1/17/2018 2:53:51 PM

1 Kicks, 362 Views

Composition is one of the key concepts of object-oriented programming languages, like Java. You can use it to reuse existing code, design clean APIs, and change the implementation of a class used in a composition without adapting any external clients. Take a look at these explanations and examples.