fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class A {
  9. A() { System.out.printf("%d ", 10); }
  10. }
  11. class B extends A {
  12. B(int a) { System.out.printf("%d ", a); }
  13. }
  14. class C extends B {
  15. C(int a) {
  16. super(a/10);
  17. System.out.printf("%d ", a);
  18. }
  19. }
  20. class Test {
  21. public static void main(String args[]) {
  22. A b = new B(1000);
  23. }
  24. }
Success #stdin #stdout 0.11s 55996KB
stdin
Standard input is empty
stdout
10 1000