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 |
Give 10 points of differences between C & C++.
What are manipulators in c++ with example?
List down the guideline that should be followed while using friend function.
What is a lambda function c++?
Differentiate between a constructor and a method in C++.
What is a friend function in c++?
Differentiate between a template class and class template?
What is constructor c++?
How can you create a virtual copy constructor?
Is linux written in c or c++?
without if else statement can be written ah
catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;