0

const member function does not allow to modify nonstatic data member value of an object. Below is the prototype for const function: function() const;const function with empty definition look like: ::function() const {}From the above you can see that with the const keyword, we can make function a const function. const function makes this pointer as pointer to a const because of this reason, we cannot modify object data i.e. nonstatic...

Read this post on allabouttechnologies.co.in


Karan Arora

blogs from Chandigarh