Ask Question
14 March, 21:00

Overloading means multiple methods in the same class:

A. have the same name, but different return types

B. have different names, but the same parameter list

C. have the same name, but different parameter lists

D. perform the same function

+3
Answers (1)
  1. 14 March, 23:52
    0
    C

    Explanation:

    Overloaded methods in programming languages like java simply refers to methods with the names but with different parameter list. for example consider this two methods in a Java program:

    public static int sum (int a, int b) {

    }

    public static int sum (int a, int b, int c) {

    }

    These two methods have the same signature but different parameter list, this is legal in Java and it is called Method Overloading. When a call is made to sum. The determinant factor as to which of these methods that will be executed is the number of arguments that will be passed by the calling program.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Overloading means multiple methods in the same class: A. have the same name, but different return types B. have different names, but the ...” 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