Examveda

What is the purpose of the super() function in advanced OOP?

A. To call the base class constructor

B. To create a new instance of a class

C. To override base class methods

D. To define class attributes

Answer: Option A

Solution (By Examveda Team)

The super() function is used to call the constructor of the base class in a subclass.

This Question Belongs to Python Program >> Advanced OOP Concepts

Join The Discussion

Related Questions on Advanced OOP Concepts

What is inheritance in OOP?

A. Creating new objects from existing ones

B. Allowing objects to share attributes and methods

C. Restricting access to object attributes

D. Converting classes into objects