🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Creates a new parent object
  2. B.Runs the parent class's init for this object
  3. C.Deletes the parent
  4. 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 →