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

What problems might the following macro bring to the application?

0 Answers  


What is singleton pattern in c++?

0 Answers  


What does new do in c++?

0 Answers  


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

0 Answers  


How const functions will be treated by compiler?

3 Answers   Symphony,






What is string in c++ programming?

0 Answers  


What is a flag in c++?

0 Answers  


What is bubble sort c++?

0 Answers  


What is the most useful programming language?

0 Answers  


What is data structure in c++?

0 Answers  


What is the difference between the functions memmove() and memcpy()?

0 Answers  


Does c++ have foreach?

0 Answers  


Categories