Hi, all,
I got a question as follows:
=================================
class x{
y b=new y();
x(){
Sytem.out.print("x");
}
}
class y{
y(){
System.out.print("y");
}
}
public class z extends x{
y y0=new y();
z(){
System.out.print("z");
}
public static void main(
String[] args){
new z();
}
}
The result is yxyz, I'm very confused,
as my understanding, it should be yxz, how come? pls help me, thanks a lot!