The Liskov Substitution Principle states that a program that accepts type T can also accept type S (which is a subtype of T), without any change in behavior or intended outcome.
The following are the benefits of this principle:
- A function can be reused for any subtype passed in the arguments.