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

Method volume

Examples/NoModules/Chapter 12/Ex12_04/Ex12_04.cpp:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21double Cube::volume() { return m_side * m_side * m_side; }
22bool Cube::hasLargerVolumeThan(Cube cube) { return volume() > cube.volume(); }
23
24int main()

Callers 2

hasLargerVolumeThanMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected