## 17.1 Operator Member Functions

Syntax 17.2 : Overloading Operator Member Function Definition
    return_type ClassName::operatoroperator_symbol( parameters )
    {
       statements
    }
Example: |
    Time Time::operator+( int sec )
    {
       Time r = *this;
       r.add_seconds( sec );
       return r;
    }
Purpose: | Supply the implementation of an overloaded operator member function.

prev |top |next