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

Method volume

Examples/NoModules/Chapter 14/Ex14_06/Box.h:27–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 ~Box() { std::cout << "Box destructor" << std::endl; }
26
27 double volume() const { return m_length * m_width * m_height; }
28
29 // Accessors
30 double getLength() const { return m_length; }

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected