Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ volume
Method
volume
Exercises/NoModules/Chapter 12/Soln12_06/Box.h:14–17 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
: m_length{length}, m_width{width}, m_height{height} {};
13
14
double volume() const
15
{
16
return m_length * m_width * m_height;
17
}
18
19
int compare(const Box& box) const
20
{
Callers
1
compare
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected