Is there a specific name for the “Square inherits from Rectangle” paradox?
https://softwareengineering.stackexchange.com/questions/199331
-
06-11-2019 - |
Pregunta
A certain failure of OOP is shown with a class Square inheriting from Rectangle, where logically Square is a specialization of Rectangle and should therefore inherit from it, but everything falls apart when you attempt to change a Square's length or width.
Is there a specific term for describing what is going wrong with that case?
No hay solución correcta
Licenciado bajo: CC-BY-SA con atribución
No afiliado a softwareengineering.stackexchange