What is Class Invariant?
A. A class invariant is an assertion that must be true of any class instance between calls of its exported operations
B. Class invariants must be established by class constructors
C. Class invariants must be preserved by every exported operation in the class
D. All of the mentioned
Answer:A
What is Class Invariant?
A. A class invariant is an assertion that must be true of any class instance between calls of its exported operations B. Class invariants must be established by class constructors C. Class invariants must be preserved by every exported operation in the class D. All of the mentioned
Explanation: All of the mentioned depicts class invariant.