Habits Quote by Anonymous
““trying to convert an existing class from concrete to abstract by pushing just the concrete parts down into a new subclass, you might accidentally leave remnants of concrete behavior behind.””
About This Quote
Refactoring a class to abstract can unintentionally retain concrete behavior, causing bugs.
In simple terms: Changing a class to abstract may leave old code behind.
Check for leftover concrete methods after refactoring.
Themes
Mood
Type
When to use this quote
- code review
- software maintenance
- team code reviews
Key Concepts
Questions to Reflect On
- What concrete parts might remain hidden?
- How can tests catch these remnants?
Abstract classes must be fully tested for unintended behavior.