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
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
Can we use struct in c++?
What is the sequence of destruction of local objects?
which of the following is not an secondary constant a) array b) real c) union
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Is python better than c++?
If I is an integer variable, which is faster ++i or i++?
What c++ is used for?
Can we use this pointer in a class specific, operator-overloading function for new operator?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Differentiate between a constructor and a method in C++.
What is null pointer and void pointer and what is their use?
What are the 3 levels of programming languages?
Explain virtual class?
What is overloading unary operator?