πŸ“Š Python
Q. What is method overriding?
  • (A) Declaring the same method multiple times in a class
  • (B) Using a method without declaration
  • (C) Providing a new definition for a method in a derived class
  • (D) Deleting a method
πŸ’¬ Discuss
βœ… Correct Answer: (C) Providing a new definition for a method in a derived class

Explanation: Method overriding allows a subclass to provide a specific implementation of a method already defined in its parent class.

Explanation by: Mr. Dubey
Method overriding allows a subclass to provide a specific implementation of a method already defined in its parent class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
64
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate