class invariant

English · Thesaurus

AI In plain words

Writing a short explanation…

Written by a house AI from the entry below, in your language. The entry itself is the source.

class invariant

noun class invariants

  1. 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.

    Similar: type invariant

Talk about this word

Cite this
MLA

"class invariant." Wiktionary, via Micwyn, micwyn.com/word/class%20invariant. Accessed 6 Nov. 2026.

APA

class invariant. (n.d.). In Wiktionary, via Micwyn. Retrieved November 6, 2026, from https://micwyn.com/word/class%20invariant

Chicago

"class invariant." Wiktionary, via Micwyn. Accessed November 6, 2026. https://micwyn.com/word/class%20invariant.

BibTeX
@misc{class_invariant_2026,
  title = {class invariant},
  howpublished = {Wiktionary, via Micwyn},
  year = {2026},
  url = {https://micwyn.com/word/class%20invariant},
  urldate = {2026-11-06}
}