Question OOP-INH-0058
MediumIn Python, how does a child class call the parent's version of method save()?
- A.
self.parent.save()
- B.
parent.save()
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Inheritance question
In Python, how does a child class call the parent's version of method save()?
self.parent.save()
parent.save()
Sign up free to see the answer and a step-by-step explanation.
base.save()
super().save()