You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 line
592B

  1. interface Shape
  2. method area() as word
  3. method scale(f as byte) as word
  4. method name() as char
  5. end interface
  6. interface Named
  7. method label() as char
  8. method show()
  9. end interface
  10. class Box implements Shape, Named, Display
  11. public method area() as word
  12. return 1
  13. end method
  14. public method scale(f as byte) as word
  15. return f
  16. end method
  17. public method name() as char
  18. return 'b'
  19. end method
  20. public method label() as char
  21. return 'l'
  22. end method
  23. public method show()
  24. end method
  25. end class
  26. interface Display
  27. method show()
  28. end interface
  29. program Main
  30. end program

Powered by TurnKey Linux.