2075 9

CSC166 ยท 2075 ยท 5 marks

"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]

Object Oriented ProgrammingChapter 2: Basics of C++ programmingFunctions

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...