Skip to content

Glossary: Software Design Patterns

LSP

Also written: Liskov substitution principle, Liskov substitution

The SOLID principle that a child class must work anywhere its parent works. `LockedCard` breaks it by refusing `top_up`.

Where the book teaches it

Related terms

SOLIDInheritance