#include<iostream>
using namespace std;
class Point {
public:
Point(float xx=0, float yy=0) {X=xx;Y=yy;}
float GetX() {return X;}
private:
float X,Y;
};
class Rectangle: private Point {
public:
Rectangle(float x, float y, float w, float h):Point(x,y) {W=w;H=h;}
float GetX() {return ___________;}
float GetH() {return H;}
float GetW() {return W;}
private:
float W,H;};
int main() {
Rectangle r(1,2,3,4);
cout<<r.GetX();
return 0;
} 请为横线处选择合适的程序使得程序的运行结果是1( )?




