The Liskov Substitution Principle (LSP) is a design principle that ensures substitutability of objects in a program. It emphasises that derived classes (subtypes) should be substitutable for their base classes…
The Liskov Substitution Principle
![](https://finchett.com/wp-content/uploads/2023/12/chemistry-2081994_640.jpg)
The Liskov Substitution Principle (LSP) is a design principle that ensures substitutability of objects in a program. It emphasises that derived classes (subtypes) should be substitutable for their base classes…