Being successful Quote by Bjarne Stroustrup
“Defining OO as based on the use of class hierarchies and virtual functions is also practical in that it provides some guidance as to where OO is likely to be successful”
About This Quote
Source Book: The C++ Programming Language, 4th Edition, 2013
Object‑oriented design works best when it follows class hierarchies and virtual functions, offering clear guidance on suitable problems.
In simple terms: OO works well with class hierarchies and virtual functions.
Use class hierarchies and virtual functions to guide OO design.
Themes
Mood
Type
When to use this quote
- large codebases
- framework development
- API design
Key Concepts
Questions to Reflect On
- When should you avoid OO hierarchies?
- How do virtual functions impact performance?
May limit flexibility in languages lacking strong OO support.