class invariant
class invariant noun: an invariant used to constrain objects of a class that is preserved by class methods and that constrains the state stored in the object.
Noun
class invariant (plural class invariants)
- An invariant used to constrain objects of a class that is preserved by class methods and that constrains the state stored in the object.
- 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.2000, Meilir Page-Jones, Fundamentals of Object-oriented Design in UML, Addison-Wesley Professional, →ISBN, page 272
- Synonyms:
- type invariant
Synonyms of class invariant
- type invariant
Forms of class invariant
| plural | class invariants |
|---|
Questions about class invariant
- What does class invariant mean?
- Class invariant means an invariant used to constrain objects of a class that is preserved by class methods and that constrains the state stored in the object.
- What part of speech is class invariant?
- Class invariant is a noun.
- What is the plural of class invariant?
- The plural of class invariant is class invariants.
Words near class invariant in the dictionary
Source and license
Adapted from Wiktionary: class invariant (page history and authors). Text available under the Creative Commons Attribution-ShareAlike 4.0 license. Word.ws reformatted the entry and added links. Wiktionary data of 2026-09-02.
Last updated:
Cite this entry: “class invariant.” Word.ws, https://word.ws/class_invariant. Based on Wiktionary, CC BY-SA 4.0.
