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

Method Box

Examples/NoModules/Chapter 15/Ex15_08/Box.h:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7public:
8 Box(double length, double width, double height)
9 : m_length {length}, m_width {width}, m_height {height}
10 {
11 std::cout << "Box constructor called for a Box of volume " << volume() << std::endl;
12 }
13 virtual ~Box()
14 {
15 std::cout << "Box destructor called for a Box of volume " << volume() << std::endl;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected