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

how to create thread in java?

17 Answers   IBM, Infosys, Wipro,


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

0 Answers  


What is the expansion of OOPS?

24 Answers   TCS,


Why is object oriented programming so hard?

0 Answers  


What is the difference between a mixin and inheritance?

0 Answers  






What are generic functions and generic classes?

5 Answers  


What is the oops and benefits of oops programming?

0 Answers  


What is the renewal class?

0 Answers   Ebix, IBM,


what is the function of 'this' operator ?

7 Answers   Wipro,


create a c++ program that will accepts 9 inputs using 3 by 3 array.

1 Answers  


What is abstract class in oops?

0 Answers  


difference between structure and union.

2 Answers   ADP, Convergys,


Categories