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 are the conditions that have to be met for a condition to be an invariant of the class?

Answer Posted / atul shankhwar

 The condition should hold at the end of every constructor.

 The condition should hold at the end of every mutator(non-const) operation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1404


Can we use struct in c++?

1011


What is the sequence of destruction of local objects?

969


which of the following is not an secondary constant a) array b) real c) union

1790


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

1197


Is python better than c++?

1018


If I is an integer variable, which is faster ++i or i++?

1056


What c++ is used for?

1054


Can we use this pointer in a class specific, operator-overloading function for new operator?

1094


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1147


Differentiate between a constructor and a method in C++.

1043


What is null pointer and void pointer and what is their use?

1085


What are the 3 levels of programming languages?

1031


Explain virtual class?

1021


What is overloading unary operator?

1068