What is composition?
Composition is a design technique that establishing relationships between classes. There are two fundamental ways to relate classes : inheritance and composition. Composition is an alternative way of inheritance to ralate classes. Example : class Fruit { //... } class Mango { Fruit fruit = new Fruit(); //... }