Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ volume
Method
volume
Examples/NoModules/Chapter 13/Ex13_02/Box.h:11–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9
Box(double l, double w, double h) : m_length{ l }, m_width{ w }, m_height{ h } {}
10
11
double volume() const { return m_length * m_width * m_height; }
12
13
// Accessors
14
double getLength() const { return m_length; }
Callers
2
operator<
Method · 0.45
operator<
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected