Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ volume
Method
volume
Exercises/Modules/Chapter 13/Soln13_08/Box.cpp:7–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
import <format>;
6
7
double Box::volume() const
8
{
9
return m_length * m_width * m_height;
10
}
11
12
// Overloaded += operator
13
Box& Box::operator+=(const Box& aBox)
Callers
2
main
Function · 0.45
operator<=>
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected