InterviewSolution
Saved Bookmarks
| 1. |
What does a mutable member of a class mean?(a) A member that can never be changed(b) A member that can be updated only if it not a member of constant object(c) A member that can be updated even if it a member of constant object(d) A member that is global throughout the classI have been asked this question during an interview.This key question is from Classes in division Source Files, Classes and Operator Overloading in C++ of C++ |
|
Answer» CORRECT answer is (C) A MEMBER that can be updated even if it a member of CONSTANT OBJECT For explanation: Mutable members are those which can be updated even if it a member of a constant object. You can change their value even from a constant member function of that class. |
|