what is the use of mutable key word

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the problem with multiple inheritance?

789


Why do we use class?

798


What is class in oop with example?

805


What is polymorphism and why is it important?

740


What is abstract class in oop?

718






Which method cannot be overridden?

746


How is polymorphism achieved?

758


How do you explain polymorphism?

772


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2285


Prepare me a program for the animation of train

2187


Is oop better than procedural?

745


Advantage and disadvantage of routing in telecom sector

977


What is polymorphism in oop example?

702


What is encapsulation with example?

768


Why is polymorphism important in oop?

796