Justify explicit and mutable keyword with example
Answers
Answered by
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
Social Sciences,
3 months ago
Biology,
3 months ago
English,
6 months ago
Math,
10 months ago
Chemistry,
10 months ago