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
Explain the difference between c++ and java.
What are function prototypes?
Where must the declaration of a friend function appear?
What is the syntax for a for loop?
Explain how an exception handler is defined and invoked in a Program.
What is c++ iterator?
When do we run a shell in the unix system?
What is the basic difference between C and C++?
What is an adaptor class or wrapper class in c++?
What are the three forms of cin.get() and what are their differences?
Give example of a pure virtual function in c++?
Which one between if-else and switch is more efficient?
When must you use a pointer rather than a reference?
What is data type in c++?
What is the use of data hiding?