Q. What is method overriding in Java?

  • (A) Defining a new method with the same name in a subclass
  • (B) Hiding a method in the superclass
  • (C) Redefining a method in the superclass
  • (D) Defining multiple methods in the same class
πŸ’¬ Discuss
βœ… Correct Answer: (A) Defining a new method with the same name in a subclass

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
103
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Neelam Mittal
Publisher
πŸ“ˆ
98%
Success Rate