Assertion: class | /r/CapableOf | achieve polymorphic behavior
Facets:
value: by containing instances of other classes
type: MANNER
value: by their composition
type: MANNER
Source sentences:
text: 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 or parent class.