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
It just guarantees that calling salary() doesn't change the object state. IE, it can be called with a const pointer or reference.