#include<iostream>
using namespace std;
class Box
{
private:
int height;
int width;
int length;
public:
Box();
Box(int h);
Box(int h,int w);
Box(int h,int w,int len);
int Volume();
};
Box::Box()
{
height=10;
width=10;
length=10;
}
Box::Box(int h)
{
height=h;
width=10;
length=10;
}
Box::Box(int h,int w)
{
height=h;
width=w;
length=10;
}
Box::Box(int h,int w,int len):
height(h),width(w),length(len)
{}
int Box::Volume()
{return (height*width*length);}
int main()
{
Box box1;
cout<<"the volume of box1 is"<<box1.Volume()<<endl;
Box box2(16);
cout << "the volume of box2 is" << box2.Volume() << endl;
Box box3(15,40);
cout << "the volume of box3 is" << box3.Volume() << endl;
Box box4(13,32,34);
cout << "the volume of box4 is" << box4.Volume() << endl;
return 0;
}