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

Method volume

Examples/NoModules/Chapter 17/Ex17_01A/Box.h:10–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 Box(double l, double w, double h) : m_length{ l }, m_width{ w }, m_height{ h } {}
9
10 double volume() const { return m_length * m_width * m_height; }
11private:
12 double m_length, m_width, m_height;
13};

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected