fork download
  1. class C1
  2. def m()
  3. return 'parent'
  4. end
  5. end
  6. class C2 < C1
  7. def m()
  8. return super()+' child'
  9. end
  10. end
  11. o = C2.new()
  12. p o.m()
  13.  
Success #stdin #stdout 0.05s 9704KB
stdin
Standard input is empty
stdout
"parent child"