fork download
  1. class A:
  2. def do(self):
  3. print('RTFM, noob!')
  4.  
  5. class B(A):
  6. def do(self):
  7. print('What does super() do?')
  8. super().do()
  9.  
  10. bar = B()
  11. bar.do()
  12.  
Success #stdin #stdout 0.01s 9992KB
stdin
Standard input is empty
stdout
What does super() do?
RTFM, noob!