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`.
Glossary: Software Design Patterns
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`.