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

Are polymorphisms mutations?

703


What does and I oop and sksksk mean?

652


Give two or more real cenario of virtual function and vertual object

1851


Why do we need oop?

671


What is the real time example of encapsulation?

597






There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1458


Who invented oop?

657


Why is abstraction needed?

567


Write a program to reverse a string using recursive function?

1792


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1417


What is oops with example?

564


What is the point of oop?

656


What are the two different types of polymorphism?

672


Why do while loop is used?

577


Can an interface inherit a class?

561