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

Method showVolume

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

Source from the content-addressed store, hash-verified

19 virtual double volume() const { return m_length * m_width * m_height; }
20
21 void showVolume() const
22 {
23 std::cout << "The volume from inside Box::showVolume() is "
24 << volume() << std::endl;
25 }
26
27private:
28 double m_length, m_width, m_height;

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected