fork download
  1.  
  2.  
  3. abstract class AbstractComputer {
  4.  
  5. public void describe() {
  6.  
  7. System.out.println("os [super]");
  8. }
  9. }
  10.  
  11.  
  12. class Computer extends AbstractComputer {
  13.  
  14.  
  15. public void describe() {
  16.  
  17. System.out.println("os [this]");
  18. }
  19.  
  20.  
  21. public void show() {
  22.  
  23. // os [this]
  24. describe();
  25.  
  26. // os [this]
  27. this.describe();
  28.  
  29. // os [super]
  30. super.describe();
  31. }
  32. }
  33.  
  34.  
  35. public class Main {
  36.  
  37. public static void main(String[] args) {
  38.  
  39. new Computer().show();
  40. }
  41. }
  42.  
Success #stdin #stdout 0.06s 49084KB
stdin
Standard input is empty
stdout
os [this]
os [this]
os [super]