class invariant
名词 n.
英文释义
名词 n.
-
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.
词形变化
0 次浏览
数据来源: Wiktionary