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

Difference between over loading and over ridding?

12 Answers   CTS, Patni, Softvision Solution,


How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.

4 Answers   NIIT, TCS,


What is the use of fflush(stdin) in c++?

4 Answers   HCL,


What is pointer in oop?

0 Answers  


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

0 Answers  






namespace is working on which compiler?

3 Answers  


What is interface? When and where is it used?

0 Answers  


function overridind means and simple program

2 Answers  


Difference between realloc() and free?

9 Answers   HP,


Why is encapsulation used?

0 Answers  


Why multiple inheritance is not possible?

0 Answers  


write a program for function overloading?

14 Answers   HCL, InfoCity, TATA,


Categories