Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is class invariant?



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

Post New Answer

More C++ General Interview Questions

Can I learn c++ without knowing c?

0 Answers  


What is unary operator? List out the different operators involved in the unary operator.

0 Answers  


How is computer programming useful in real life?

0 Answers  


diff between pointer and reference in c++?

1 Answers  


What is the difference between #define debug 0 and #undef debug?

0 Answers  


What is the limitation of cin while taking input for character array?

0 Answers  


Describe the setting up of my member functions to avoid overriding by the derived class?

0 Answers  


What is a smart pointer?

2 Answers  


What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }

4 Answers  


Can a list of string be stored within a two dimensional array?

0 Answers  


Explain the operation of overloading of an assignment operator.

0 Answers  


What is the use of ‘using’ declaration?

1 Answers  


Categories