Q. What is the purpose of method overriding in Java?

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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
241
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
80%
Success Rate