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

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…