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

Why do we use encapsulation in oops?

0 Answers  


Can we have a private virtual method ?

8 Answers   Ness Technologies,


Why do we use polymorphism?

0 Answers  


Why do we use inheritance?

0 Answers  


what is difference between String s=new String("vali"); String s="vali"

1 Answers  






Program to print 0 to 9 in cross order

3 Answers  


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

0 Answers  


what is difference between class template and template class?

0 Answers  


tell about copy constructor

3 Answers   Siemens,


Write 7 differences between "Public" function and "Private" function?

2 Answers   IBM, Wipro,


Can you name some types of inheritance?

0 Answers   Motorola,


how to get the oracle certification? send me the answer

0 Answers   Oracle,


Categories