When a subclass inherits methods and fields from their parents, but doesn’t need them. It’s often a sign that the subclass is not substitutable for its parent class. In that case it’s a breach of the Liskov Substitution Principle.
- This smell is included Martin Fowler's book "Refactoring", 2nd Edition
- This smell is included among wikipedia's code smells
Back to All Code Smells