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 a superclass in oop?

672


What is purpose of inheritance?

645


What is polymorphism what is it for and how is it used?

576


What is overloading and its types?

619


What is encapsulation in oop?

611






Is this job good for future? can do this job post grduate student?

1694


How many human genes are polymorphic?

577


What is polymorphism explain its types?

688


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1396


What is object and example?

604


Is oop better than procedural?

577


What is oops in simple words?

585


What does and I oop and sksksk mean?

655


What is the problem with multiple inheritance?

588


What is the purpose of enum?

585