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

What are disadvantages of pointers?

0 Answers  


Difference between struct and class in terms of access modifier.

0 Answers  


What are advantages of C++ when comparing with C?

18 Answers   HP, iGate, TCS,


What do you mean by storage classes?

1 Answers  


How many bit combinations are there in a byte?

13 Answers   Intel, Microsoft,


What is operators in c++?

0 Answers  


Difference between Constructors and static constructors?

3 Answers   IBM, TCS,


What are the various compound assignment operators in c++?

0 Answers  


What is the benefit of learning c++?

0 Answers  


What is the basic structure of a c++ program?

0 Answers  


Is c++ a dying language?

0 Answers  


Difference between inline functions and macros?

0 Answers  


Categories