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 happens if a pointer is deleted twice?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
What's the best free c++ profiler for windows?
What is the standard template library (stl)?
What does std :: flush do?
What is the difference between an enumeration and a set of pre-processor # defines?
What are c++ tokens?
Explain about vectors in c ++?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What does std mean in c++?
Can a built-in function be recursive?
What is struct c++?
How come you find out if a linked-list is a cycle or not?
what do you mean by volatile variable?
How to demonstrate the use of a variable?