class W {
W() {
System.out.println("W....");
}
}
class Y {
Y() {
System.out.println("Y....");
}
}
class X {
Y b = new Y();
X() {
System.out.println("X....");
}
}
public class Z extends X {
W w = new W();
Z() {
super();
System.out.println("Z....");
}
public static void main(String[] args) {
new Z();
}
}
|
|