Thread: Const means?
View Single Post
  #4 (permalink)  
Old 11-24-2007, 07:30 AM
vbarta vbarta is offline
D-Web Trainee
 
Join Date: Nov 2007
Posts: 1
vbarta is on a distinguished road
Default Re: Const means?

Quote:
Originally Posted by S.Vinothkumar View Post
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.
Reply With Quote