Interview Questions

What are the conditions that have to be met for a condition to be an invariant of the class?

C++ Interview Questions and Answers


(Continued from previous question...)

18. What are the conditions that have to be met for a condition to be an invariant of the class?

* The condition should hold at the end of every constructor.
* The condition should hold at the end of every mutator (non-const) operation.

(Continued on next question...)

Other Interview Questions