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 |
Write a program to calculate the BMI of a person using the formula BMI = weight/height2.
What is pointer -to-members in C++? Give their syntax?
Which operator can not be overloaded in C++?
difference between macro and function?
Why do we use using namespace std in c++?
How to stop conversions among objects?
What is the use of dot in c++?
What is an operator function? Describe the function of an operator function?
Why do you use the namespace feature?
Are there interfaces in c++?
Which one between if-else and switch is more efficient?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass