Advertisements
Advertisements
प्रश्न
What are the rules for function overloading?
टीपा लिहा
उत्तर
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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?