"circle-ellipse problem" meaning in All languages combined

See circle-ellipse problem on Wiktionary

Noun [English]

Head templates: {{head|en|noun|head=circle-ellipse problem}} circle-ellipse problem
  1. (object-oriented programming) 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. Wikipedia link: circle-ellipse problem Categories (topical): Object-oriented programming
    Sense id: en-circle-ellipse_problem-en-noun-04qUpGGM Categories (other): English entries with incorrect language header

Download JSON data for circle-ellipse problem meaning in All languages combined (2.1kB)

{
  "head_templates": [
    {
      "args": {
        "1": "en",
        "2": "noun",
        "head": "circle-ellipse problem"
      },
      "expansion": "circle-ellipse problem",
      "name": "head"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "noun",
  "senses": [
    {
      "categories": [
        {
          "kind": "other",
          "name": "English entries with incorrect language header",
          "parents": [
            "Entries with incorrect language header",
            "Entry maintenance"
          ],
          "source": "w"
        },
        {
          "kind": "topical",
          "langcode": "en",
          "name": "Object-oriented programming",
          "orig": "en:Object-oriented programming",
          "parents": [
            "Programming",
            "Computing",
            "Software engineering",
            "Technology",
            "Computer science",
            "Engineering",
            "Software",
            "All topics",
            "Sciences",
            "Applied sciences",
            "Media",
            "Fundamental",
            "Communication"
          ],
          "source": "w"
        }
      ],
      "glosses": [
        "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."
      ],
      "id": "en-circle-ellipse_problem-en-noun-04qUpGGM",
      "links": [
        [
          "object-oriented programming",
          "object-oriented programming"
        ],
        [
          "base class",
          "base class"
        ],
        [
          "method",
          "method"
        ],
        [
          "mutate",
          "mutate"
        ],
        [
          "object",
          "object"
        ],
        [
          "invalidate",
          "invalidate"
        ],
        [
          "invariant",
          "invariant"
        ],
        [
          "derived class",
          "derived class"
        ],
        [
          "Liskov substitution principle",
          "Liskov substitution principle"
        ]
      ],
      "qualifier": "object-oriented programming",
      "raw_glosses": [
        "(object-oriented programming) 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."
      ],
      "wikipedia": [
        "circle-ellipse problem"
      ]
    }
  ],
  "word": "circle-ellipse problem"
}
{
  "head_templates": [
    {
      "args": {
        "1": "en",
        "2": "noun",
        "head": "circle-ellipse problem"
      },
      "expansion": "circle-ellipse problem",
      "name": "head"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "noun",
  "senses": [
    {
      "categories": [
        "English entries with incorrect language header",
        "English lemmas",
        "English multiword terms",
        "English nouns",
        "en:Object-oriented programming"
      ],
      "glosses": [
        "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."
      ],
      "links": [
        [
          "object-oriented programming",
          "object-oriented programming"
        ],
        [
          "base class",
          "base class"
        ],
        [
          "method",
          "method"
        ],
        [
          "mutate",
          "mutate"
        ],
        [
          "object",
          "object"
        ],
        [
          "invalidate",
          "invalidate"
        ],
        [
          "invariant",
          "invariant"
        ],
        [
          "derived class",
          "derived class"
        ],
        [
          "Liskov substitution principle",
          "Liskov substitution principle"
        ]
      ],
      "qualifier": "object-oriented programming",
      "raw_glosses": [
        "(object-oriented programming) 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."
      ],
      "wikipedia": [
        "circle-ellipse problem"
      ]
    }
  ],
  "word": "circle-ellipse problem"
}

This page is a part of the kaikki.org machine-readable All languages combined dictionary. This dictionary is based on structured data extracted on 2024-05-10 from the enwiktionary dump dated 2024-05-02 using wiktextract (a644e18 and edd475d). The data shown on this site has been post-processed and various details (e.g., extra categories) removed, some information disambiguated, and additional data merged from other sources. See the raw data download page for the unprocessed wiktextract data.

If you use this data in academic research, please cite Tatu Ylonen: Wiktextract: Wiktionary as Machine-Readable Structured Data, Proceedings of the 13th Conference on Language Resources and Evaluation (LREC), pp. 1317-1325, Marseille, 20-25 June 2022. Linking to the relevant page(s) under https://kaikki.org would also be greatly appreciated.