What do you mean by composition in Java?

The composition is a design technique in java to implement a has-a relationship . Java Inheritance is used for code reuse purposes and the same we can do by using composition. The composition is achieved by using an instance variable that refers to other objects.29 Eyl 2021

Sizin İçin Seçtik  Can you make chat apps with Python?

Leave a Reply

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

What do you mean by composition in Java?

The composition is a design technique in java to implement a has-a relationship . Java Inheritance is used for code reuse purposes and the same we can do by using composition. The composition is achieved by using an instance variable that refers to other objects.29 Eyl 2021

Sizin İçin Seçtik  What is the difference between Aggregation and composition in Aggregation?

Leave a Reply

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