What is the purpose of using access modifier mutable?
Explanation
C ++ Standard - ANSI ISO IEC 14882 2003 § 7.1.1.9 The mutable specifier on a class data member nullifies a const specifier applied to the containing class object and permits modification of the mutable class member even though the rest of the object is const

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes