Vidyalelo
Java Programming · Q5

Overriding and Overloading

Programming · Java Programming · question 5

Q5

What is method hiding in Java?

A.
Making a method private in a subclass
B.
Redefining a method with a different return type in a subclass
C.
Creating a static method with the same name as a superclass method
Answer
D.
Defining a new method with the same name in a subclass

Answer: Option C

Solution

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