MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / Box

Class Box

Examples/NoModules/Appendix A/ExA_13/Box.h:5–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#define BOX_H
4
5class Box
6{
7public:
8 Box();
9 Box(double length, double width, double height);
10
11 double getLength() const;
12 double getWidth() const;
13 double getHeight() const;
14
15 double volume() const;
16
17private:
18 double m_length;
19 double m_width;
20 double m_height;
21};
22
23#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected