Glossary: Software Design Patterns in C++
Liskov substitution principle
Also written: LSP
The L in SOLID: a child class must work anywhere its parent works. A `LockedCard` that throws in `top_up` breaks what a `GiftCard` promises.
Glossary: Software Design Patterns in C++
Also written: LSP
The L in SOLID: a child class must work anywhere its parent works. A `LockedCard` that throws in `top_up` breaks what a `GiftCard` promises.