...

/

What’s the Liskov Substitution Principle?

What’s the Liskov Substitution Principle?

Get a brief introduction to the Liskov substitution principle.

We'll cover the following...

The Liskov substitution principle was initially introduced by Barbara Liskov, an American computer scientist, in 1987. The principle states that if you substitute a parent with any of its derived classes, the behavior of the program shouldn’t change.

This principle was introduced specifically with inheritance in mind, which is an integral feature of object-oriented programming. Inheritance allows us ...