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
How to allocate memory dynamically for a reference?
Why do we need pointers?
What is a singleton class c++?
What is data structure in c++?
Can recursive program be written in C++?
Is c++ vector dynamic?
Does c++ vector allocate memory?
Can you please explain the difference between using macro and inline functions?
How do you define a class in c++?
What is setf in c++?
When does the c++ compiler create temporary variables?
Can static member variables be private?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
What is nested class in c++?
What are the advantages of early binding?