#include <iostream.h>
#include<conio.h>
class Box
{
public:
double length;
double width;
double height;
double volume()
{
return length * width * height;
}
};
void main()
{
clrscr();
Box firstBox = { 80.0, 50.0, 40.0 };
Box SecondBox = firstBox;
SecondBox.length *= 1.1;
SecondBox.width *= 1.1;
SecondBox.height *= 1.1;
cout <<"Length : " <<SecondBox.length <<endl;
cout<<"Width : " <<SecondBox.width <<endl;
cout<<"Height : "<<SecondBox.height<<endl;
cout << "Volume of second Box object is " << SecondBox.volume()<< endl;
getch();
}