您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

59 行
878B

  1. interface Shape
  2. method area() as word
  3. end interface
  4. interface Named
  5. method label() as char
  6. end interface
  7. interface Scaled
  8. method scale(f as byte) as word
  9. end interface
  10. interface Boolish
  11. method ok() as boolean
  12. end interface
  13. interface Left
  14. method show()
  15. end interface
  16. interface Right
  17. method show(x as byte)
  18. end interface
  19. class NotIface
  20. end class
  21. class Missing implements Shape
  22. end class
  23. class Hider implements Named
  24. private method label() as char
  25. return 'h'
  26. end method
  27. end class
  28. class WrongParam implements Scaled
  29. public method scale(f as word) as word
  30. return f
  31. end method
  32. end class
  33. class WrongReturn implements Boolish
  34. public method ok() as word
  35. return 0
  36. end method
  37. end class
  38. class Conflict implements Left, Right
  39. public method show()
  40. end method
  41. end class
  42. class BadIface implements NotIface
  43. end class
  44. program Main
  45. end program

Powered by TurnKey Linux.