📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    In Python, if you want to call the constructor of a

    parent class explicitly, which method do you use?
    A parent.init() Correct Answer Incorrect Answer
    B super().init() Correct Answer Incorrect Answer
    C base.construct() Correct Answer Incorrect Answer
    D init.super() Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    In Python, super().__init__() is the standard way to call the parent class constructor.

    Practice Next
    More Object Oriented Programming Questions
    ask-question