
Liskov Substitution Principle in Design Pattern
Liskov Substitution Principle is the principle that when we extend a class, we must ensure the correctness of that class. An example that you often see when learning about this principle is that a rectangle must be a rectangle, the…