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 Infotech{
  9. Infotech(){System.out.println("b ");}
  10. Infotech(String tech){
  11. this(); System.out.println("bn " + tech);
  12. }}
  13.  
  14. class Metazone extends Infotech{
  15. Metazone() {System.out.println("h ");}
  16. Metazone(String tech){
  17. this(); System.out.println("hn " + tech);}
  18. public static void main(String[] args) {new Metazone("X ");
  19. }}
Success #stdin #stdout 0.03s 711168KB
stdin
Standard input is empty
stdout
b 
h 
hn X