fork(1) download
  1. class C1:
  2. def m(self):
  3. return 'parent'
  4. class C2(C1):
  5. def m(self):
  6. return super().m() + ' child'
  7. pass
  8. o = C2()
  9. print(o.m())
  10.  
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
parent child