+ 1

what does super() do?

I tried different types like int, float, str, list, dict, obj and function.

24th Aug 2017, 9:56 AM
Matthew Li
Matthew Li - avatar
5 Answers
+ 5
It refers to the superclass of the class name given. If there is no superclaass it shows NULL
24th Aug 2017, 10:22 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
What language? Please specify
24th Aug 2017, 10:19 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
24th Aug 2017, 10:19 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 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.
24th Aug 2017, 10:31 AM
Tim Thuma
Tim Thuma - avatar
0
thank you!
2nd Sep 2017, 5:11 AM
Matthew Li
Matthew Li - avatar