Multiple Choice Question

Quiz Guidelines

 

QID: 
118
Question: 

Which of the following are true regarding overloading of a method?

Select 1 option

A. An overloading method must have a different parameter list and same return type as that of the overloaded method.
B. If there is another method with the same name but with a different number of arguments in a class then that method can be called as overloaded.
C. If there is another method with the same name and same number and type of arguments but with a different return type in a class then that method can be called as overloaded. 
D. An overloaded method means a method with the same name and same number and type of arguments exists in the super class and sub class.

Q&A Set: