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
Why do we need pointers?
What is encapsulation in C++? Give an example.
Can non graphic characters be used and processed in C++?
Is swift a good first language?
What is auto type c++?
Is it possible to provide default values while overloading a binary operator?
explain the reference variable in c++?
What is #include iomanip?
Can turbo c++ run c program?
Can we inherit constructor in c++?
What is the role of static keyword for a class member variable?
Can union be self referenced?
How do you flush a buffer in c++?
What is implicit pointer in c++?
Carry out conversion of one object of user-defined type to another?