Ask Question

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

+4
Answers (1)
  1. 3 November, 21:04
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers