← Quiz: Inheritance: all 10 questions
Quiz: Inheritance · Question 6 of 10
What does super().init(brand, 2) do in a Python child class?
What does super().__init__(brand, 2) do in a Python child class?
- A.Creates a new parent object separate from the child
- B.Deletes the parent's constructor
- C.Runs the parent's constructor to set up the inherited fields
- D.Calls the child's constructor again
Answer & explanation
Correct answer: Runs the parent's constructor to set up the inherited fields
super() reaches the parent's version so the child reuses its setup.
Can you get the rest right without peeking?
Take the timed Quiz: Inheritance quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →