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
Can c++ be faster than c?
What is atoi in c++?
What is the use of default constructor?
What is the rule of three?
Where do I find the current c or c++ standard documents?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Which should be more useful: the protected and public virtuals?
Define pre-condition and post-condition to a member function in c++?
What do nonglobal variables default to a) auto b) register c) static
Write a program to find the Fibonacci series recursively.
What is the benefit of encapsulation?
How many types of modularization are there in c++?
Is c++ a difficult language?
Why do you use the namespace feature?
What is endl c++?