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...

Markdown supported · ⌘↵ to post
No responses yet.