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?

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


Please Help Members By Posting Answers For Below Questions

What are the two types of comments?

943


How come you find out if a linked-list is a cycle or not?

989


What is the difference between strcpy() and strncpy()?

1073


Give an example of run-time polymorphism/virtual functions.

953


Explain polymorphism?

1032


What is c++ best used for?

1019


Which compiler does turbo c++ use?

1026


How does java differ from c and c++?

931


What do you know about near, far and huge pointer?

1063


Is c++ fully object oriented?

921


Name the implicit member functions of a class.

1035


What is while loops?

997


What is the meaning of c++?

967


Which should be more useful: the protected and public virtuals?

982


What is the difference between map and hashmap in c++?

1039