What are the conditions that have to be met for a condition to be an invariant of the class?



What are the conditions that have to be met for a condition to be an invariant of the class?..

Answer / 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

More C++ General Interview Questions

What are the storage qualifiers?

0 Answers  


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

0 Answers  


plz send me National informatics center paper pattern

1 Answers  


What is the difference between public, private, and protected access?

0 Answers  


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

0 Answers  






How is static data member similar to a global variable?

0 Answers  


Explain the properties and principles of oop.

0 Answers  


When should you use global variables?

0 Answers  


Define token in c++.

0 Answers  


Do the parentheses after the type name make a difference with new?

0 Answers  


What is the main purpose of overloading operators?

0 Answers  


What happens if a pointer is deleted twice?

0 Answers   Flextronics,


Categories