9.9 ĸֵ
#include <iostream>
using namespace std;
class Box
{public:
Box(int=10,int=10,int=10);               //ĬϲĹ캯
int volume( );
private:
int height;
int width;
int length;
};

BoxBox(int h,int w,int len)
{height=h;
width=w;
length=len;
}

int Boxvolume( )
{return(height*width*length);      //
}

int main( )
{Box box1(15,30,25),box2;                     //box1box2
cout<<The volume of box1 is <<box1.volume( )<<endl;
box2=box1;                                   //box1ֵbox2
cout<<The volume of box2 is <<box2.volume( )<<endl;
return 0;
}
