#include using namespace std; #include "Rectangle.hpp" class Cuboid { Rectangle rect; int length; public: Cuboid(Rectangle r, int l); int volume(); }; Cuboid::Cuboid(Rectangle r, int l) { rect = r; length = l; } int Cuboid::volume() { return rect.width * rect.height * length; }