#include "Cuboid.hpp" Cuboid::Cuboid(int w, int h, int l) { rect.setWidth(w); rect.setHeight(h); length = l; } Cuboid::Cuboid(Rectangle r, int l) { rect = r; length = l; } void Cuboid::setRectangle(Rectangle r) {rect = r;} Rectangle Cuboid::getRectangle() const {return rect;} void Cuboid::setLength(int l) { length = l; } int Cuboid::getLength() const { return length; } int Cuboid::volume() { return length * rect.getWidth() * rect.getHeight(); }