What is super () __ init __ in Python?
Rachel Newton
Updated on May 15, 2026
Consequently, what does super () do in Python?
The super() function in Python makes class inheritance more manageable and extensible. The function returns a temporary object that allows reference to a parent class by the keyword super. The super() function has two major use cases: To avoid the usage of the super (parent) class explicitly.
Similarly, what does super () do? super is used to call the constructor , methods and properties of parent class. You may also use the super keyword in the sub class when you want to invoke a method from the parent class when you have overridden it in the subclass.
Moreover, how do you call a super in Python?
super() returns a proxy object of the parent class and then you call the method of your choice on that proxy object, thus, we can call the area() method of Square class using super() as, super(). area() . Here follows a modified definition of the class Cube .
What is __ init __ in Python?
__init__ : "__init__" is a reseved method in python classes. It is known as a constructor in object oriented concepts. This method called when an object is created from the class and it allow the class to initialize the attributes of a class.