GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

circle-ellipse problem

Noun

  • The problematic situation where a base class contains methods which mutate an object in a manner which may invalidate a (stronger) invariant found in a derived class, violating the Liskov substitution principle. For example, if a circle is modelled as a subtype of an ellipse, and the ellipse has a method that stretches it on one axis, the circle must also implement that method despite it making no sense for a circle
source: Wiktionary mirror (dictionary.db) · licence: CC BY-SA 4.0 (Wiktionary dump) · page

Cite this

"circle-ellipse problem". Wiktionary mirror (dictionary.db). CC BY-SA 4.0 (Wiktionary dump). https://en.wiktionary.org/wiki/circle-ellipse problem

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·