fork download
  1. class Runner {
  2. public static void main (String[] args) {
  3. Child c = new Child();
  4. c.method();
  5. }
  6. }
  7.  
  8. class Super {
  9. protected void method() {
  10. System.out.println("Super");
  11. }
  12. }
  13.  
  14. class Intermediate extends Super {}
  15.  
  16. class Child extends Intermediate {
  17. @Override
  18. public void method() {
  19. super.method();
  20. }
  21. }
Success #stdin #stdout 0.06s 51032KB
stdin
Standard input is empty
stdout
Super