Ask Question

Which of the following is true?

a. If methods have the same name but different value it iscalled overloading methods.

b. If methods have the same name but same value it iscalled overloading methods.

c. If methods have the same parameter but different valueit is called underloading methods.

d. If methods have the same header but different valueit is called reloading methods.

+5
Answers (1)
  1. 25 April, 22:06
    0
    None of them is true.

    Explanation:

    Option a and option b are false because overloading methods means the methods in the same class with the same name in which the methods have different argument lists. The argument lists differ that can be due to (1) different number of parameters or (2) different data type of parameters or (3) different sequence of parameters (ex - swapped parameters).

    Option c is false as there is no concept called underloading methods

    Option d is false as there is no concept called reloading methods.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following is true? a. If methods have the same name but different value it iscalled overloading methods. b. If methods have ...” 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