what is the use of mutable key word

Answers were Sorted based on User's Feedback



what is the use of mutable key word..

Answer / ramakant

This keyword can only be applied to non-static and non-
const data members of a class. If a data member is declared
mutable, then it is legal to assign a value to this data
member from a const member function.

Is This Answer Correct ?    6 Yes 0 No

what is the use of mutable key word..

Answer / sanjay makwana

allow to constant function in member variable

Is This Answer Correct ?    2 Yes 1 No

what is the use of mutable key word..

Answer / muthuveera

Its allows the Constant function in member variable

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

polymorphism means?

6 Answers   BFL,


What is encapsulation in simple terms?

0 Answers  


What is public, protected, private?

6 Answers   IBS, Satyam,


What is virtual Function.

1 Answers   Wipro,


Differences between inline functions and non-inline functions?

4 Answers   Ness Technologies,






diff between Abstract class Interfaces?

4 Answers  


What is the difference between pass by reference and pass by value?

12 Answers   Pfizer, TCS,


What is the difference between an object and a class?

3 Answers  


1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?

6 Answers  


When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??

13 Answers   HCL, Honeywell,


What is overloading in oops?

0 Answers  


Which is the only operator in C++ which can be overloaded but NOT inherited?

8 Answers  


Categories