Is deriving square from rectangle a violation of Liskov's Substitution Principle?
- by somaraj
I am new to design and learning the design principles.
It says deriving square from rectangle is a classic example of violation of Liskov's Substitution Principle.
If that's the case, what should be the correct design?