Vidyalelo
Java Programming · Q26

Overriding and Overloading

Programming · Java Programming · question 26

Q26

In method overriding, is it mandatory for the method name in the subclass to be the same as the method name in the superclass?

A.
It depends on the access modifier
B.
It depends on the return type
C.
No, it can be different
D.
Yes, it must be the same
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board