← Quiz: Python OOP: all 15 questions
Quiz: Python OOP · Question 4 of 15
What does super().init(name) do in a child class?
What does super().__init__(name) do in a child class?
- A.Creates a new parent object
- B.Runs the parent class's init for this object
- C.Deletes the parent
- D.Calls the child's init again
Answer & explanation
Correct answer: Runs the parent class's init for this object
It lets the parent set up its attributes on the current object.
Can you get the rest right without peeking?
Take the timed Quiz: Python OOP quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →