Liskov Substitution Principle explained with simple example
Liskov Substitution Principle (LSP) is a software design principle which states that “derived class objects should be completely replaceable by their base classes“. This principle ensures that any derived class extending base class will not change their behaviour.
Before going ahead we should know why do we need software design principle and what is software design principle.
(more…)