Well done!
You have completed Understanding Class Relationships and Inheritance in Python Quiz!
Quiz Question 1 of 5
In a class hierarchy, if a SubClass overrides a method from its SuperClass but still wants to access the original implementation from the SuperClass, what would be the most appropriate approach in Python?
Choose the correct answer below:
-
A
The
SubClass
should inherit the method from anotherSubClass
that does not override it. -
B
The
SubClass
should completely redefine the method without reference to theSuperClass
. -
C
The
SubClass
should callsuper().method_name()
within its overridden method. -
D
The
SubClass
should duplicate theSuperClass
's method logic within its method definition.