Which of the following permits function overloading on c++?

Which of the following permits function overloading on c++?
A. type
B. number of arguments
C. type & number of arguments
D. number of objects
 
Answer: c
Explanation: Both type and number of arguments permits function overloading in C++, like
int func(int);
float func(float, float)
Here both type and number of arguments are different.
 

Tìm kiếm

Back
Top