October 1997
Intermediate to advanced
800 pages
20h 48m
English
Function overloading provides one name for a set of functions that all perform the same operation for different types.
You may overload global functions, static nonmember functions, constructors, member functions, and static member functions. It is illegal to overload class destructors.
A single function with suitable default arguments may match an application's requirements better than function overloading.
Enumerations and booleans are distinct types and are always overloadable.
The compiler ignores return types when determining whether function signatures are unique. Therefore, it's illegal to overload functions with the same name and signature even if their return types are different.
The compiler applies the following (in ...