The Dangers of Inheritance: Why Composition Is Preferable
summary
Examines problems and limitations of object-oriented inheritance and argues for preferring object composition instead. Uses examples from Python to show how composing objects can produce safer, more flexible designs than subclassing.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:53Tecnológico de Monterrey
- 5:02Why Composition Is Preferable to Inheritance
- 9:22The "Gang of Four"
- 10:26White-box Reuse
- 15:48Linked List
- 18:17Insertion and Removal
- 23:04Modification








