Liskov Substitution Principle

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.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset