Aer Interpreter Source
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.

62 lines
839 B

  1. interface IntA {
  2. public void test_a();
  3. }
  4. interface IntB {
  5. public void test_b();
  6. }
  7. class TestA {
  8. public void test_a() {
  9. print("Hello world from TestA::test_a().\n");
  10. }
  11. }
  12. class TestB {
  13. public void test_b() {
  14. print("Hello world from TestB::test_b().\n");
  15. }
  16. }
  17. class TestC {
  18. public void test_c() {
  19. print("Hello world from TestC::test_c().\n");
  20. }
  21. }
  22. class TestD {
  23. public void test_a() {
  24. print("Hello world from TestD::test_a().\n");
  25. }
  26. }
  27. class TestE {
  28. public void test_b() {
  29. print("Hello world from TestE::test_b().\n");
  30. }
  31. }
  32. class Program extends TestE, TestD, TestC, TestB, TestA implements IntA, IntB {
  33. public void main() {
  34. $this->test_a();
  35. $this->test_b();
  36. $this->test_c();
  37. }
  38. }