What is class invariant?
Answer / 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 |
What is c++ prototype?
What are the advantage of using register variables?
What is the use of c++ programming language in real life?
How many ways can a variable be initialized into in C++?
Where Malloc(), Calloc(), and realloc() does get memory?
write the programme that convert a interger to biniry number
What are manipulators in c++ with example?
What is polymorphism & list its types in c++?
What is meant by a delegate?
Explain the concept of dynamic allocation of memory?
What are structures and unions?
What are function prototypes?