class invariants
class invariants is the plural of class invariant.
Meaning of class invariant
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
Questions about class invariants
- What is class invariants the plural of?
- Class invariants is the plural of class invariant.
Words near class invariants in the dictionary
Source and license
Adapted from Wiktionary: class invariants (page history and authors); 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 invariants.” Word.ws, https://word.ws/class_invariants. Based on Wiktionary, CC BY-SA 4.0.
