Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
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()
25
{
Callers
1
main
Function · 0.45
Calls
1
volume
Method · 0.45
Tested by
no test coverage detected