• 单选题

    有以下程序 #include using namespace std; class Point {public: Point {X=xx;Y=yy;} float GetX {return X;} private: float X,Y;}; class Rectangle: private Point {public: Rectangle:Point {W=w;H=h;} float GetX {return ___________;} float GetH {return H;} float GetW {return W;} private: float W,H;}; int main { Rectangle r; cout<

    正确答案: B
    可在小程序上查看本题解析,扫码查看
    刷真题 · 看解析 · 听课程
易错题