Question: C++ 6. (3 points) Write a Cuboid class that has the following member variables: length (1) width (w) height (h) The class should have the
C++
6. (3 points) Write a Cuboid class that has the following member variables: length (1) width (w) height (h) The class should have the following member functions: Default Constructor: A default constructor that sets length, width, and height all to 1.0. Another Constructor: Accepts the length, width, and height of the cuboid as arguments. .getV: Returns the volume of the cuboid. getS: Returns the surface area of the cuboid. A Destructor: Print e.g. Cuboid(1.0 x 2.3 x 5.6) is deleted.. The number is the length, width and height of the cuboid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
