下面是一个选择题
下列程序的运行结果是()
class X{
Y b=new Y();
x(){System.out.print("X")}
}
class Y{
Y(){System.out.print("Y")}
}
public class Z extends X{
Y y=new Y();
z(){System.out.print("Z")}
public static void main(String[] agrs){new Z()}
}
A Z B YZ C XYZ DYXYZ
希望能给出详细的答案分析,拜托了!!