Const after operator function c++ [duplicate]

A const operator behind a member function applies to the this pointer, i.e. it guarantees that the object you call this function on may not be changed by it. It's called a const-qualified member function

If you tried, in this example, to change the persons age in the openrator*(), you would get a compile error.