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 the aggregation in oops?

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 are the unlicensed frequency bands in Singapore?

Leave a Reply

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