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

What is the real time example of encapsulation?

0 Answers  


What makes a language oop?

0 Answers  


Why do pointers exist?

0 Answers  


what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....

6 Answers  


Which is the parameter that is added to every non-static member function when it is called?

3 Answers   Accenture,






What does oop mean in snapchat?

0 Answers  


What is inheritance in simple words?

0 Answers  


namespace is working on which compiler?

3 Answers  


Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.

13 Answers   Wipro,


You attempt to query the data base with this command: SELECT name, salary FROM employee WHERE salary=(SELECT salary FROM employee WHERE last name='Wagner' OR dept no=233) Choose most appropriate option from the following: 1)Sub-queries are not allowed in the where clause. 2)a multiple row sub-query used with a single row comparison operator. 3)a single row query is used with a multiple row comparison operator.

10 Answers   Zycus Infotech,


How many types of access specifier in c# and vb.net?

1 Answers   Infosys,


What is destructor in oop?

0 Answers  


Categories