01 |
package subclass.ex8; public class M { public static void main(String[] argv) { new B(); new C(); } } class A { A() {System.out.println("A()");} } class B extends A { B() { this(1); System.out.println("B()"); } B(int x) {System.out.println("B(int)");} } class C extends B { C() {System.out.println("C()");} } |