Can anyone tell me what the const keyword placed like this does?
int GetVariable() const;
What does const here mean? Thanks.
int GetVariable() const;
What does const here mean? Thanks.
class A{
int x;
int GetVariable() const
{
x++; //[B]Will give error during compilation[/B]}
};
Comment