Is composition a principle in oops?

Composition over inheritance (or composite reuse principle) in object-oriented programming (OOP) is the principle that classes should achieve polymorphic behavior and code reuse by their composition (by containing instances of other classes that implement the desired functionality) rather than inheritance from a base …

Sizin İçin Seçtik  What is the difference between aggregation and composition in Java with example?

Leave a Reply

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