| 2 | #define BOX_H |
| 3 | |
| 4 | class Box |
| 5 | { |
| 6 | public: |
| 7 | Box() : Box{ 1.0, 1.0, 1.0} {} // A delegating default constructor |
| 8 | Box(double length, double width, double height); |
| 9 | |
| 10 | double volume() const; // Function to calculate the volume of a box |
| 11 | |
| 12 | friend double surfaceArea(const Box& box); // Friend function for the surface area |
| 13 | |
| 14 | private: |
| 15 | double m_length, m_width, m_height; |
| 16 | }; |
| 17 | |
| 18 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected