Code Smell 125 - 'IS-A' Relationship
TL:DR; Think about protocol and behavior, forget inheritance
Problems
Bad models
Unexpected behavior
Subclass overrides
Liskov substitution principle Violation
Solutions
Think in terms of behavior behaves-as-a
Prefer composition over inheri...
maximilianocontieri.com3 min read