Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
double Cube::volume() { return m_side * m_side * m_side; }
22
bool Cube::hasLargerVolumeThan(Cube cube) { return volume() > cube.volume(); }
23
24
int main()
Callers
2
hasLargerVolumeThan
Method · 0.45
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected