Function Overloading is realized by invoking a suitable function whose signature matches with the arguments specified in the function call statement.
Operator Overloading is realized by allowing operators to operate on the user defined data-types with the same interface as that of the standard data types.
In both cases, the compiler is aware of the complete information regarding the type and number of operands. Hence it is possible for the compiler to select a suitable function at the compile-time.
No comments:
Post a Comment