Function Overloading
Function Overloading
For example,
float square (float f);
double square (float x); // error
Steps Involved in Finding the Best Match
A call to an overloaded function is resolved to a particular
instance of the function through a process known as
argument matching, which can be termed as a process of
disambiguation. Argument matching involves
comparing the actual arguments of the call with the
formal arguments of each declared instance of the
function.
Contd.
Resolution rules (when substitution is used as conversion in
overloaded methods)