> 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.