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



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

Answer / atul shankhwar

 The condition should hold at the end of every constructor.

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Do you know what is overriding?

0 Answers  


Why would you use pointers in c++?

0 Answers  


Write about the stack unwinding?

0 Answers  


What is &x in c++?

0 Answers  


What is the use of endl?

0 Answers  






What is the use of volatile keyword in c++? Give an example.

1 Answers  


What does the linker do?

0 Answers  


What do you understand by zombie objects in c++?

0 Answers  


How should a contructor handle a failure?

0 Answers  


plz send me National informatics center paper pattern

1 Answers  


Explain the isa and hasa class relationships.

0 Answers  


How long does it take to get good at leetcode?

0 Answers  


Categories