Weekly Dev Tips
Liskov Substitution

Episode 53 · Season 1

Liskov Substitution

Weekly Dev Tips

5:41

About this episode

This is episode 53, on the Liskov Substitution principle. The typical definition used today is that subtypes should always be substitutable for their base types. If this isn't the case, it likely means you have the wrong inheritance relationship, or your interface isn't cohesive enough, or there is some other code smell you should consider addressing through refactoring.

More from Weekly Dev Tips