Python - Inheritance and Code Reuse
Which of the following is true about extending a parent class method in Python?
When overriding, you can still call the parent method to keep its behavior.
super() helpssuper() allows calling the parent method inside the child method, then adding new code.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions