[单选题]

下列程序的运行结果为 include class Location { protected: int X,Y;

下列程序的运行结果为 #include<iostream.h> class Location { protected: int X,Y; publiC: void SeX(int myx){X=myx;} void SetY(int myy){Y=myy;} void showxy( ) {cout<<"X=" <<X<<" " <<"Y"=<< Y<< endl;} }; Class Rectangle :public Location{

A.X=3 Y=5 X=3 Y=5 H=4 W=6

B.X=3 Y=5 X=3 Y=5 H=3 W=6

C.X=3 Y=5 X=3 Y=4 H=4 W=6

D.X=3 Y=5 X=3 Y=3 H=4 W=6

参考答案与解析: