LSP — The Liskov Substitution Principle
The Liskov Substitution Principle is a part of SOLID, a mnemonic acronym that bundles a total of 5 design principles.
It is often associated with clean code.
But what exactly is it, is it important to you, and should you even care?
What does it state?
If S is a subtype of T, then objects of type T may be…