#include<iostream>
using namespace std;
class box
{
public:
box(int h=10,int w=11);
~box(){cout<<endl<<endl;}
int volume();
private:
int height;
int wight;
};
box::box(int h,int w)
{
height=h;
wight=w;
}
int box::volume()
{
return height*wight;
}
int main()
{
box box1;
cout<<box1.volume()<<endl;
box box2(1,2);
cout<<box2.volume()<<endl;
return 0;
}
using namespace std;
class box
{
public:
box(int h=10,int w=11);
~box(){cout<<endl<<endl;}
int volume();
private:
int height;
int wight;
};
box::box(int h,int w)
{
height=h;
wight=w;
}
int box::volume()
{
return height*wight;
}
int main()
{
box box1;
cout<<box1.volume()<<endl;
box box2(1,2);
cout<<box2.volume()<<endl;
return 0;
}