Bird
0
0

Which statement best describes method overriding in polymorphism?

easy📝 Conceptual Q2 of 15
Python - Polymorphism and Dynamic Behavior
Which statement best describes method overriding in polymorphism?
AChild class provides a new version of a method from the parent class.
BParent class hides methods from the child class.
CChild class cannot change any methods from the parent class.
DMethods in child class must have different names than parent class.
Step-by-Step Solution
Solution:
  1. Step 1: Define method overriding

    Method overriding means a child class defines a method with the same name as in its parent class, replacing the parent's version.
  2. Step 2: Understand polymorphism role

    This allows polymorphism where the same method call behaves differently depending on the object's class.
  3. Final Answer:

    Child class provides a new version of a method from the parent class. -> Option A
  4. Quick Check:

    Overriding = Child method replaces parent method [OK]
Quick Trick: Overriding means child method replaces parent method [OK]
Common Mistakes:
  • Thinking parent hides child methods
  • Believing child cannot change parent methods
  • Assuming method names must differ

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes