A

Admin • 831.35K Points
Coach

Q. 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
  • (D) Defining a new method with the same name in a subclass
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.