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 |
What is a .h file c++?
Can user-defined object be declared as static data member of another class?
Define copy constructor.
Define the process of error-handling in case of constructor failure?
what are the decision making statements in C++? Explain if statement with an example?
How do you link a C++ program to C functions?
What is an iterator?
What is a class template in c++?
How a pointer differs from a reference?
Please explain class & object in c++?
What is the benefit of learning c++?
Is there any problem with the following: char *a=NULL; char& p = *a;?