Answer Posted / subham chaudhary
A class invariant is a condition that defines all valid states for an object. It is a logical condition to ensure the correct working of a class. Class invariants must hold when an object is created, and they must be preserved under all operations of the class. In particular all class invariants are both preconditions and post-conditions for all operations or member functions of the class.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by friend class & friend function in c++?
If there are two catch statements, one for base and one for derived, which should come first?
When should overload new operator on a global basis or a class basis?
What is the return value of the insertion operator?
What is iomanip c++?
Is c++ a difficult language?
Is c++ the most powerful language?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What are single and multiple inheritances in c++?
Is it possible to write a c++ template to check for a function's existence?
What is public, protected, private in c++?
How can you link a c program with a c function?
What is ostream in c++?
Is there a sort function in c++?
What is do..while loops structure?