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

![Cheat sheet: Liskov Substitution: No Surprises from a Stand-In](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/3c395618a6254722b29b383da09eebd1.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: inheritance, Liskov Substitution Principle, OOP, Polymorphism
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-liskov-substitution-cheat-sheet
