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_02/Box.cpp:6–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
import <algorithm>; // For the min() and max() function templates
5
6
double Box::volume() const
7
{
8
return m_length * m_width * m_height;
9
}
10
11
Box Box::operator+(const Box& aBox) const
12
{
Callers
3
testBox
Function · 0.45
operator<=>
Method · 0.45
testBox
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected