previous | start | next

## Member Functions (Syntax 6.2 : Member Function Definition)

Syntax 6.2 : Member Function Definition
    return_type Class_name::function_name(parameter1, ..., parametern) [const]opt
    {   statements
    }
Example: |
    void Point::move(double dx, double dy)
    {
       x = x + dx; y = y + dy;
    }
    double Point::get_x() const
    {
       return x;
    }
Purpose: | Supply the implementation of a member function.

previous | start | next