What is composition in OOP Python?

Composition is a concept that models a has a relationship . It enables creating complex types by combining objects of other types. This means that a class Composite can contain an object of another class Component . This relationship means that a Composite has a Component .

Sizin İçin Seçtik  What is composition how it is used?

Leave a Reply

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