Q. What is method overriding in Java?

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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
92%
Success Rate