What is composition in oops?

Composition is one of the fundamental concepts in object-oriented programming. It describes a class that references one or more objects of other classes in instance variables . This allows you to model a has-a association between objects.

Sizin İçin Seçtik  How do you identify Aggregation and composition in Java?

Leave a Reply

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