class="java">/** * * * @author panql */ public class Aaaa extends Bbb { private int a = 12; private Ccc c = new Ccc(); Aaaa() { super(); System.out.println(a); } public static void main(String[] args) { new Aaaa(); } } class Bbb { private int b; Bbb() { System.out.println("bbb"); } public Bbb(int b) { this.b = b; System.out.println(b); } } class Ccc { Ccc() { System.out.println("ccc"); } }
?output:bbb
ccc
12