立方体类型
#include<iostream>
using namespace std;
class Box
{
protected:
int X,Y,Z,T;
public:
Box(int x,int y,int z):X(x),Y(y),Z(z)
{
}
void f()
{
T=X*Y*Z;
}
void show()
{
cout<<T<<'\n';
}
};
int main()
{
int x,y,z;
cin>>x>>y>>z;
Box a(x,y,z);
a.f();
a.show();
}