1 1:java 编写一个表示立方体的类Cube,它继承自类Square,还包含有表示立方体高的Drotected类型的成员变量h,计算立方体体积的public方法volume().2:java 建立两个Cube类的对象Cube1和Cube2,输出其体积的值.每个类中应包含有参数的构造方法,用于对成员变量的初始化.子类的构造方法中必须有调用其父类
Shower door fitting "Cube" flush glass-glass in square and lifting-lowering technology-Prodiamonds Hardware Co.,Ltd-Shower door fitting "Cube" flush glass-glass in square and lifting-lowering technology