Google News
logo
CPP - Quiz(MCQ)
What does a mutable member of a class mean?
A)
A member that is global throughout the class
B)
A member that can be updated even if it a member of constant object
C)
A member that can never be changed
D)
A member that can be updated only if it not a member of constant object

Correct Answer :   A member that can be updated even if it a member of constant object


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.

Advertisement