<<< Calling static member functions | Index | Resolving overloaded function calls >>> |
In C, function names must be unique across all modules.
In C++, function names may be reused, provided the arguments allow disambiguation.
Different classes may have the same member function name, since the type of the object allows the compiler to disambiguate.
Global functions can also be overloaded...
...just as functions within the same class:
class Point { double distance_to_point( point other ); double distance_to_point( int x, int y ); // ... };
<<< Calling static member functions | Index | Resolving overloaded function calls >>> |