正在加载图片...
class Rectangle: public Point pub1ic://新增公有函数成员 void InitR(float x, float y, float w float h) 影(工nitP(x,y);W=W;H=h;}//调用基类公有成员函数 float Geth( return H; float Getwoi return wi F private://新增私有数据成员 float w,hclass Rectangle: public Point { public: //新增公有函数成员 void InitR(float x, float y, float w, float h) { InitP(x,y); W=w; H=h; }//调用基类公有成员函数 float GetH() { return H; } float GetW() { return W; } private: //新增私有数据成员 float W,H; };
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有