Webastor - Programming Tips and Tricks

Programming language => C++ => Topic started by: Vincent on November 17, 2016, 07:04:54 PM

Title: What is meant by Mutability of Objects in c++ language?
Post by: Vincent on November 17, 2016, 07:04:54 PM
Hi all, I would like to ask you a big question that is in my head ... I would like to know what is meant by mutability of objects in c++ language? Please answer the question as soon as possible, thank you in advance.
Title: Re: Mutability of Objects in c++ language?
Post by: Kyron on April 30, 2017, 10:45:54 AM
The mutable storage class specifier in C++ (or use of mutable keyword in C++)
auto, register, static and extern are the storage class specifiers in C. typedef is also considered as a storage class specifier in C. C++ also supports all these storage class specifiers. In addition to this C++, adds one important storage class specifier whose name is mutable.