Re:Case against OOP is understated, not overstated (2020)
by suyjuris on Saturday February 12, 2022 @08:23AM
(#30312612)
> Liskov substitution principle tells you that a rectangle cannot be a super class of a square.
It does not. The Liskov substitution principle states, as it applies here, that a property that holds for all rectangles has to hold for all squares. This is true, as every square is a rectangle.
It does not. The Liskov substitution principle states, as it applies here, that a property that holds for all rectangles has to hold for all squares. This is true, as every square is a rectangle.