| 3 | #define BOX_H |
| 4 | |
| 5 | class Box |
| 6 | { |
| 7 | public: |
| 8 | Box() = default; |
| 9 | Box(double length, double width, double height) |
| 10 | : m_length{ length }, m_width{ width }, m_height{ height } |
| 11 | {} |
| 12 | |
| 13 | double volume() const { return m_length * m_width * m_height; } |
| 14 | |
| 15 | // Accessors |
| 16 | double getLength() const { return m_length; } |
| 17 | double getWidth() const { return m_width; } |
| 18 | double getHeight() const { return m_height; } |
| 19 | |
| 20 | private: |
| 21 | double m_length {1.0}; |
| 22 | double m_width {1.0}; |
| 23 | double m_height {1.0}; |
| 24 | }; |
| 25 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected