Explain class invariant.



Explain class invariant...

Answer / Somraj Dheeman

A class invariant is a property that should be true for any object of a class before and after every public method call. It helps ensure the integrity of an object's state.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is a node class?

1 Answers  


what is difference between static and non-static variables

10 Answers  


What is the difference between global int and static int declaration?

1 Answers  


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

1 Answers  


give me an example for testing a program showing the test path .show how the test is important and complex.

1 Answers   TCS,


What is malloc in c++?

1 Answers  


what is the difference between overloading & overriding? give example.

1 Answers  


What is lvalue?

1 Answers  


Can I make ios apps with c++?

1 Answers  


Will a catch statement catch a derived exception if it is looking for the base class?

1 Answers  


Why is c++ is better than c?

1 Answers  


what is c++

1 Answers  


Categories