Function Overloading (cont’d)
C++ lets us define multiple functions with the same name, as long as they can be distinguished based on their argument list. Such a multiply defined function is “overloaded”.
abs(1.0); // call abs(double)
vector cross(vector i, vector j);
vector cross(vector i, vector j, vector k);
cross(a, b); // call first cross
cross(a, b, c); // call second cross