Is a square a (kind of) polygon?
The answer depends on whether we can follow the Liskov principle:
- Suppose we have a program that uses polygon objects
- The Liskov principle says that we should be able to rewrite the program using square objects instead
- Can we do that?