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  What are the two types in Java?

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  What is composition and aggregation in C#?

Leave a Reply

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