Quote:
Originally Posted by S.Vinothkumar Constantness of member function means that value for any variable of the program cannot be changed in this function. |
That isn't correct. const methods can still change global values, they just can't change fields of the object on which they're called.