Liskov substitution principle

up:: SOLID “If you have a function that can take the base class, it should also be able to take a child class”.

For example, a function that works with Rectangle should also work with Square.