Which of the following is correct about function overloading?
a. the types of arguments are different.
b. the order of argument is different.
c. the number of argument is same.
d. both a and
b?
Answers
Answered by
0
In functional overloading, both the types and order of arguments is different.
- Functional overloading is where two or more functions may have different parameters but have the same name. The function can execute multiple operations and thus prevents the use of specific function names for the same operations.
- Overloaded methods are classified based upon the number and form of parameters provided to the methods as arguments.
- One can not describe more than one method with the same name, order and argument form otherwise it would be an error in the compiler. Thus, the order and types are always different.
Similar questions