+ 1
what does super() do?
I tried different types like int, float, str, list, dict, obj and function.
5 Answers
+ 5
It refers to the superclass of the class name given.
If there is no superclaass it shows NULL
+ 4
What language? Please specify
+ 4
+ 2
Take a look at this website and look at the differences between these 2 codes below:
https://stackoverflow.com/questions/222877/what-does-super-do-in-JUMP_LINK__&&__python__&&__JUMP_LINK
https://code.sololearn.com/c3t0Sl9jPn16/?ref=app
https://code.sololearn.com/c3jISTM8zR0c/?ref=app
So super() is used for work with multiple inheritances.
0
thank you!