| 4 | #include "Vessel.h" |
| 5 | |
| 6 | class Box : public Vessel |
| 7 | { |
| 8 | public: |
| 9 | Box(double l, double w, double h) : m_length {l}, m_width {w}, m_height {h} {} |
| 10 | |
| 11 | double volume() const override { return m_length * m_width * m_height; } |
| 12 | |
| 13 | protected: // Should be private in production-quality code (add getters to access) |
| 14 | double m_length, m_width, m_height; |
| 15 | }; |
| 16 | |
| 17 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected