+ 4

Can someone explain to me clearly about this super() function?

10th Sep 2020, 4:00 PM
Sanchayeeta Saha
Sanchayeeta Saha - avatar
3 odpowiedzi
+ 6
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. read this. https://www.educative.io/edpresso/what-is-super-in-python
10th Sep 2020, 4:05 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
super() calls the constructor of the parent class no argument or default constructor in inheritance hierarchy...
10th Sep 2020, 4:07 PM
Jayakrishna 🇮🇳
+ 3
It's just a reference to parent class object from a derived class
10th Sep 2020, 4:51 PM
rahul negi
rahul negi - avatar