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
.
Search
Jan 15, 2024
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
.