Advertisements
Advertisements
Question
What are the rules for function overloading?
Short Note
Solution
Rules for function overloading:
- The overloaded function must differ in the number of its arguments or data types.
- The return type of overloaded functions is not considered for overloading the same data type.
- The default arguments of overloaded functions are not considered as part of the parameter list in function overloading.
shaalaa.com
Is there an error in this question or solution?