Ask Question
1 August, 00:46

Nonambiguous, overloaded methods must have the same. a) name b) number of parameters c) parameter names d) types of parameters

+4
Answers (1)
  1. 1 August, 02:50
    0
    Option (a) is the correct answer for the given question.

    Explanation:

    Method having same name but different arguments is known as method overloading. Method overloading is used to achieved the compile time Polymorphism in java.

    For example:

    void sum (int a); / / function 1

    void sum (int a, int b); / / function 2

    In this example the method name of both the function is same but different parameter. In function 1 only one integer parameter but in function 2 their are 2 integer parameter.

    So correct answer is option (a) i. e name.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Nonambiguous, overloaded methods must have the same. a) name b) number of parameters c) parameter names d) types of parameters ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers