Liskov Substitution Principle (LSP) – Method Rules Explained with Simple Examples
The Liskov Substitution Principle (LSP) is the third principle of SOLID.
It states:
A child class should be able to replace its parent class without breaking the application.
Most developers underst
yesamitsingh.hashnode.dev6 min read