What is composition in Java in Javatpoint?

The Composition is a way to design or implement the “has-a” relationship . Composition and Inheritance both are design techniques. The Inheritance is used to implement the “is-a” relationship. The “has-a” relationship is used to ensure the code reusability in our program.

Sizin İçin Seçtik  When should observer pattern be used?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is composition in Java in Javatpoint?

The Composition is a way to design or implement the “has-a” relationship . Composition and Inheritance both are design techniques. The Inheritance is used to implement the “is-a” relationship. The “has-a” relationship is used to ensure the code reusability in our program.

Sizin İçin Seçtik  Amazon dropshipping nasıl yapılır adım adım?

Leave a Reply

Your email address will not be published. Required fields are marked *