| 2 | #define BOX_H |
| 3 | |
| 4 | class Box |
| 5 | { |
| 6 | public: |
| 7 | /* Constructors */ |
| 8 | Box(double length, double width, double height); |
| 9 | Box(double side); // Constructor for a cube |
| 10 | Box(); // Default constructor |
| 11 | Box(const Box& box); // Copy constructor |
| 12 | |
| 13 | double volume() const { return m_length * m_width * m_height; }; |
| 14 | |
| 15 | private: |
| 16 | double m_length {1.0}; |
| 17 | double m_width {1.0}; |
| 18 | double m_height {1.0}; |
| 19 | }; |
| 20 | |
| 21 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected