Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

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

  Shared By: Adah Miller    Date: Jan 25    Category: C++ Programming    Views: 187

Answer:

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

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: