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_02/Box.h:20–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
18
Box() { std::cout <<
"Box() called.\n"
; } // Default constructor
19
20
double volume() const { return m_length * m_width * m_height; }
21
22
// Accessors
23
double getLength() const { return m_length; }
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected