inheriting-method.lox 143 B

1234567891011
  1. class Doughnut {
  2. cook() {
  3. print "Dunk in the fryer.";
  4. }
  5. }
  6. class Cruller < Doughnut {
  7. finish() {
  8. print "Glaze with icing.";
  9. }
  10. }