- An alternative to OOP/Inheritance is to delegate behavior, also called composition. Instead of an is a, this is a has a relationship. It refers to combining simple types to make more complex ones.
OOP/Composition
Links to this note
- OOP
- Why you should use [OOP/Composition](/t/oop/composition/) instead of inheritance