Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

35 řádky
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.