Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 1)
1.
What is the purpose of the
super()
function in Python when working with inheritance?
Answer: Option
Explanation:
The
super()
function is used to call the constructor of the superclass, allowing the subclass to initialize its own attributes while reusing the superclass's initialization code.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers