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  MSI GTX 1080 kaç mh?

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  Will Bitcoins go up in 2021?

Leave a Reply

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