Composition over inheritance
Composition over inheritance (or composite reuse principle) in object-oriented programming 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. This is an often-stated principle of OOP, such as in the influential Design Patterns: "Favor 'object composition' over 'class inheritance'."
Wikipage redirect
primaryTopic
Composition over inheritance
Composition over inheritance (or composite reuse principle) in object-oriented programming 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. This is an often-stated principle of OOP, such as in the influential Design Patterns: "Favor 'object composition' over 'class inheritance'."
has abstract
Composition over inheritance ( ...... on' over 'class inheritance'."
@en
Komposition an Stelle von Vere ...... ten einer Klasse zu verändern.
@de
La composizione al posto dell' ...... e questo tipo di composizione.
@it
Link from a Wikipage to an external page
Wikipage page ID
26,356,139
Wikipage revision ID
742,164,673
hypernym
type
comment
Composition over inheritance ( ...... on' over 'class inheritance'."
@en
Komposition an Stelle von Vere ...... ten einer Klasse zu verändern.
@de
La composizione al posto dell' ...... ll'ereditarietà delle classi."
@it
label
Composition over inheritance
@en
Composizione al posto dell'ereditarietà
@it
Komposition an Stelle von Vererbung
@de