adplus-dvertising
frame-decoration

Question

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: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is Class Invariant?