Say you have a class Foo, and it contains some member variables. And in that class
you have a const-correct function. Can you code some way in C++, that changes the private
member variable, inside the const-correct function. For example :
class Foo{
int num;
public:
void doIt()const{
num = 5; // compile error
}
}
In other words, can you somehow change num, inside the doIt() function?
Hint, it is possible.