Two kinds of polymorphism (cont'd)

With C++, you can overload a single function name so that the absolute value of any of the three data types can be obtained by calling a function having the same name for each of the three data types.

The programmer only needs to remember one name, such as abs for example.

The compiler makes the decision as to which specific function will be executed.

The decision is based on the type of data to which the function is applied.