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

Method hasLargerVolumeThan

Examples/Modules/Chapter 12/Ex12_04/Ex12_04.cpp:22–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.45

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected