using?namespace?std;
class?Box?{
private?:
int?length;
int?width;
int?heigth;
public?:
Box(int?len?=?0,int?w?=?0,int?h?=?0);
void?print();
int?volume();
~Box()?{}
};
Box::Box(int?len,int?w,int?h)?{
length?=?len;
width?=?w;
heigth?=?h;
}
void?Box::print()?{
cout?<<?length?<<?","?<<?width?<<?","?<<?heigth?<<?endl;
}
int?Box::volume()?{
return?length?*?width?*?heigth;
}
int?main()?{
Box?A(2,3,5);
A.print();
cout?<<?A.volume()?<<?endl;
return?0;
}