“getter” member functions usually return a result by value. However, when the returned value is a large object, a string for example, returning it by value can be very inefficient. Returning the result by reference rather than by value, as in:
string & Person::get_name(){ return name;}
solves the overhead problem. Alas, this technique isn