Liskov Substitution: No Surprises from a Stand-In

When a pass/fail course is written as a kind of course and then throws when asked for a letter grade, every report card with art on it stops; the Liskov substitution principle says a subclass must keep every promise its parent makes, so it can stand in anywhere the parent is expected, with no surprises.

By

Updated

Cheat sheet: Liskov Substitution: No Surprises from a Stand-In
Category
Data Structures
Level
Journeyman
Tags
inheritance, Liskov Substitution Principle, OOP, Polymorphism