P

Praveen Singh • 36.81K Points
Coach

Q. 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
  • Correct Answer - Option(D)
  • Views: 21
  • Filed under category JAVA

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.


Question analytics