Object Oriented Programming20755 marksFunctions
"An overloaded function appears to perform different activities depending the kind of data send to it." Justify the statement with appropriate example.
"An overloaded function appears to perform different activities depending the kind of data send to it." Justify the statement with appropriate example. [5]
Function overloading is a feature of C++ that allows two or more functions to have the same name but different parameter lists (different number, type, or order of arguments). The compiler distinguishes between overloaded functions based on the type and number of arguments passed to them. As stat...