【单选题】定义描述矩形的类 Rectangle ,描述长方体高的类 High ,其数据成员为长方体高度 H 。再由矩形类与高类多重派生出长方体类 Cuboid 。主函数中定义长方体对象并修改数据显示数据。 #include class Rectangle { protected: float Length,Width; // 数据成员为长与宽,类外不可访问 public: float Area() //...
A.
Cuboid(float L,float W,float H):Rectangle(),High()
B.
Cuboid(float L,float W,float H):Rectangle( float L, float W),High( float H)
C.
Cuboid(float L,float W,float H):Rectangle(L,W),High(H) ;
D.
Cuboid(float L,float W,float H):Rectangle(L,W),High(H)