001package subclass.ex8; 002 003public class M { 004 public static void main(String[] argv) { 005 new B(); 006 new C(); 007 } 008} 009class A { 010 A() {System.out.println("A()");} 011} 012class B extends A { 013 B() { 014 this(1); 015 System.out.println("B()"); 016 } 017 B(int x) {System.out.println("B(int)");} 018} 019class C extends B { 020 C() {System.out.println("C()");} 021}