What are the conditions that have to be met for a condition to be an invariant of the class?
Answer Posted / 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 View All Answers
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Why is it necessary to use a reference in the argument to the copy constructor?
Are there any special rules about inlining?
What is the use of c++ programming language in real life?
What is pointer in c++ with example?
How can you specify a class in C++?
How do I run a program in notepad ++?
What is a class template in c++?
Write syntax to define friend functions in C++.
How many static variables are created if you put one static member into a template class definition?
What is a class definition?
What is iterator c++?
What is late binding c++?
What is endl?
What are exceptions c++?