Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ volume
Method
volume
Examples/NoModules/Chapter 14/Ex14_04C/Box.h:18–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
{ std::cout <<
"Box(double) called.\n"
; }
17
18
double volume() const { return m_length * m_width * m_height; }
19
20
// Accessors
21
double getLength() const { return m_length; }
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected