In general, the super keyword can be used to call overridden methods, access hidden fields or invoke a superclass's constructor. When i try to run it as at the end of the file i get this stacktrace In fact, multiple inheritance is the only case where super() is of any use
Script For Super Bowl 59 Has Already Been Leaked Out
I would not recommend using it with classes using linear inheritance, where it's just useless overhead.
As for chaining super::super, as i mentionned in the question, i have still to find an interesting use to that
For now, i only see it as a hack, but it was worth mentioning, if only for the differences with java (where you can't chain super). I'm currently learning about class inheritance in my java course and i don't understand when to use the super() call I found this example of code where super.variable is used If we're using a class method, we don't have an instance to call super with
Fortunately for us, super works even with a type as the second argument Which is exactly what python tells me is not possible by saying that do_something () should be called with an instance of b. So i was following python's super considered harmful, and went to test out his examples Can't be called from main method
How to mock super class method using mockito or any other relevant java framework asked 10 years, 5 months ago modified 3 years, 6 months ago viewed 89k times
I wrote the following code