Computer Science, asked by nikeshkonde6001, 6 months ago

Justify explicit and mutable keyword with example ​

Answers

Answered by Anonymous
0

Answer:

The keyword mutable is mainly used to allow a particular data member of const object to be modified. When we declare a function as const, the this pointer passed to function becomes const. Adding mutable to a variable allows a const pointer to change members.

.

hope it helps ❤️

Similar questions