"class invariant" meaning in English

See class invariant in All languages combined, or Wiktionary

Noun

Forms: class invariants [plural]
Head templates: {{en-noun}} class invariant (plural class invariants)
  1. (object-oriented programming) An invariant used to constrain objects of a class that is preserved by class methods and that constrains the state stored in the object. Wikipedia link: class invariant Categories (topical): Object-oriented programming Synonyms: type invariant Related terms: design by contract
    Sense id: en-class_invariant-en-noun-uDUIPFOO Categories (other): English entries with incorrect language header

Inflected forms

Alternative forms

Download JSON data for class invariant meaning in English (1.9kB)

{
  "forms": [
    {
      "form": "class invariants",
      "tags": [
        "plural"
      ]
    }
  ],
  "head_templates": [
    {
      "args": {},
      "expansion": "class invariant (plural class invariants)",
      "name": "en-noun"
    }
  ],
  "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"
        }
      ],
      "examples": [
        {
          "ref": "2000, Meilir Page-Jones, Fundamentals of Object-oriented Design in UML, Addison-Wesley Professional, page 272",
          "text": "Every object of a given class must satisfy the class's invariant. This invariant acts as a constraint, limiting the size of the class's state-space. A subclass both inherits the class invariant(s) of its superclass(es) and adds a further restriction of its own.",
          "type": "quotation"
        }
      ],
      "glosses": [
        "An invariant used to constrain objects of a class that is preserved by class methods and that constrains the state stored in the object."
      ],
      "id": "en-class_invariant-en-noun-uDUIPFOO",
      "links": [
        [
          "object-oriented programming",
          "object-oriented programming"
        ],
        [
          "invariant",
          "invariant"
        ],
        [
          "class",
          "class"
        ]
      ],
      "qualifier": "object-oriented programming",
      "raw_glosses": [
        "(object-oriented programming) An invariant used to constrain objects of a class that is preserved by class methods and that constrains the state stored in the object."
      ],
      "related": [
        {
          "word": "design by contract"
        }
      ],
      "synonyms": [
        {
          "word": "type invariant"
        }
      ],
      "wikipedia": [
        "class invariant"
      ]
    }
  ],
  "word": "class invariant"
}
{
  "forms": [
    {
      "form": "class invariants",
      "tags": [
        "plural"
      ]
    }
  ],
  "head_templates": [
    {
      "args": {},
      "expansion": "class invariant (plural class invariants)",
      "name": "en-noun"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "noun",
  "related": [
    {
      "word": "design by contract"
    }
  ],
  "senses": [
    {
      "categories": [
        "English countable nouns",
        "English entries with incorrect language header",
        "English lemmas",
        "English multiword terms",
        "English nouns",
        "English terms with quotations",
        "en:Object-oriented programming"
      ],
      "examples": [
        {
          "ref": "2000, Meilir Page-Jones, Fundamentals of Object-oriented Design in UML, Addison-Wesley Professional, page 272",
          "text": "Every object of a given class must satisfy the class's invariant. This invariant acts as a constraint, limiting the size of the class's state-space. A subclass both inherits the class invariant(s) of its superclass(es) and adds a further restriction of its own.",
          "type": "quotation"
        }
      ],
      "glosses": [
        "An invariant used to constrain objects of a class that is preserved by class methods and that constrains the state stored in the object."
      ],
      "links": [
        [
          "object-oriented programming",
          "object-oriented programming"
        ],
        [
          "invariant",
          "invariant"
        ],
        [
          "class",
          "class"
        ]
      ],
      "qualifier": "object-oriented programming",
      "raw_glosses": [
        "(object-oriented programming) An invariant used to constrain objects of a class that is preserved by class methods and that constrains the state stored in the object."
      ],
      "synonyms": [
        {
          "word": "type invariant"
        }
      ],
      "wikipedia": [
        "class invariant"
      ]
    }
  ],
  "word": "class invariant"
}

This page is a part of the kaikki.org machine-readable English dictionary. This dictionary is based on structured data extracted on 2024-05-03 from the enwiktionary dump dated 2024-05-02 using wiktextract (f4fd8c9 and c9440ce). 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.