#include using namespace std; class Box { int l, b, h; public: Box() { l = b = h = 1; cout << "Default constructor called" << endl; } Box(int x, int y, int z) { l = x; b = y; h = z; cout << "Parameterized constructor called" << endl; } Box(Box &obj) { l = obj.l; b = obj.b; h = obj.h; cout << "Copy constructor called" << endl; } int volume() { return l * b * h; } ~Box() { cout << "Destructor called for box with volume " << volume() << endl; } }; int main() { Box b1; Box b2(2, 3, 4); Box b3(b2); cout << "\nVolume of b1 = " << b1.volume() << endl; cout << "Volume of b2 = " << b2.volume() << endl; cout << "Volume of b3 = " << b3.volume() << endl << endl; return 0; }