Composition Over Inheritance
Assemble behaviour from parts instead of building deep class trees. Lesson 5 of Level 3: Object-Oriented Design.
Level 3 · Object-Oriented Design · Lesson 5 of 6
Assemble behaviour from parts instead of building deep class trees.
Continue learning
- Interface Segregation & Dependency Inversion — Previous lesson
- Encapsulation, Tell Don’t Ask & the Law of Demeter — Next lesson
- Level 3: Object-Oriented Design — Back to the level