27

Several functions with the same name but different parameter lists (number or type). The compiler picks the right one at compile time (compile-time polymorphism).

C++ 7 lines
int add(int a, int b)          { return a + b; }
double add(double a, double b) { return a + b; }
int add(int a, int b, int c)   { return a + b + c; }

add(2, 3);        // 5
add(2.5, 1.5);    // 4.0
add(1, 2, 3);     // 6

Note: a different return type alone is not enough to overload.