MCPcopy 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

4import <algorithm>; // For the min() and max() function templates
5
6double Box::volume() const
7{
8 return m_length * m_width * m_height;
9}
10
11Box Box::operator+(const Box& aBox) const
12{

Callers 3

testBoxFunction · 0.45
operator<=>Method · 0.45
testBoxFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected