Books Quote by Kirk Knoernschild
““Those readers new to object orientation typically assume a close relation exists between inheritance and reuse. We want to debunk this myth immediately. Though reuse is touted as a benefit of object orientation, it is in fact a goal. Reuse cannot be taken for granted, nor is it guaranteed. In reality, achieving reuse requires a lot of effort and discipline, and we'll spend a lot of time in this book talking about this aspect of object orientation.””
About This Quote
Source Book: Object-Oriented Design Principles, 2019
Inheritance is often mistaken for automatic reuse, but reuse must be deliberately engineered and is not guaranteed.
In simple terms: Reuse isn’t automatic with inheritance.
Plan reuse explicitly.
Themes
Mood
Type
When to use this quote
- building libraries
- refactoring
- code reviews
Key Concepts
Questions to Reflect On
- What safeguards ensure reuse?
- When should inheritance be avoided?
Reuse can be costly and complex.