Liskov Substitution Principle

The Liskov substitution principle tells us that any derived class can be used in a base class location. Hence the interface and all methods must be maintained. This rule is consistent with open/closed principle, as the derived class does not affect the behavior of the parent class. This means that derived classes must be substitutable…
Read more