Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ volume
Method
volume
Exercises/NoModules/Chapter 21/Soln21_02/Soln21_02.cpp:64–64 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
62
{}
63
64
double volume() const { return m_length * m_width * m_height; }
65
double isSmallerThan(const Box& other) const { return volume() < other.volume(); }
66
67
private:
Callers
2
isSmallerThan
Method · 0.45
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected