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

Method volume

Examples/NoModules/Chapter 12/Ex12_13/Box.h:13–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 Box(const Box& box); // Copy constructor
12
13 double volume() const { return m_length * m_width * m_height; };
14
15private:
16 double m_length {1.0};

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected