Q9
What is method overriding in Python?
A.
Replacing a method with a new method
B.
Defining a method in a subclass with the same name as in the base class
AnswerC.
Calling a method from a different class
D.
Creating a new method in a subclass
Answer: Option B
Solution
Answer: Option B
Solution:
Method overriding involves defining a method in a subclass with the same name as in the base class to modify its behavior.