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 happens if a pointer is deleted twice?

1277


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

1001


What's the best free c++ profiler for windows?

1088


What is the standard template library (stl)?

1791


What does std :: flush do?

1141


What is the difference between an enumeration and a set of pre-processor # defines?

1393


What are c++ tokens?

1061


Explain about vectors in c ++?

1033


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

1085


What does std mean in c++?

1132


Can a built-in function be recursive?

1029


What is struct c++?

1006


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

1037


what do you mean by volatile variable?

1057


How to demonstrate the use of a variable?

1124