class Super {
Super() {
System.out.println("Super contructor");
}
}
public class Main extends Super {
Main() {
this(1);
System.out.println("Main() contructor");
}
Main(int i) {
System.out.println("Main(int) contructor");
}
public static void main(String [] args) {
new Main();
}
}
Login in to like
Login in to comment