in
int salary() const { return mySalary; }
as far as I understand const is for this pointer, but I\'m not sure. Can any one tell me what is the us
When the function is marked const it can be called on a const pointer/reference of that class. In effect it says This function does not modify the state of the class.
const