Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 66)
66.
What is the purpose of the super() function?
To access the superclass of a class.
To call the constructor of the superclass.
To create an instance of the superclass.
To check if an object is a superclass.
Answer: Option
Explanation:
The super() function in Python is used to access the superclass of a class, allowing you to call methods from the superclass.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.