Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Why was c++ made?

0 Answers  


Why c++ is faster than java?

0 Answers  


What is a null object in c++?

0 Answers  


Explain selection sorting?

0 Answers  


What is binary search in c++?

0 Answers  






How do I start a c++ project?

0 Answers  


What is a friend function in c++?

0 Answers  


Consider the following code fragment: int main(void) { int m = 4; mystery ( m ); mystery ( m ); printf("%d", m); return 0; } What is the output on the monitor if mystery is defined as follows ? void mystery (int m) { m = m+3; }

2 Answers   CDAC, Wipro,


What are the advantages of using typedef in a program?

0 Answers  


What are move semantics?

0 Answers  


What are friend functions in C++?

0 Answers   BlackRock,


Write any small program that will compile in "C" but not in "C++"?

4 Answers  


Categories