MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / volume

Method volume

Exercises/NoModules/Chapter 13/Soln13_08/Box.cpp:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

mainFunction · 0.45
operator<=>Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected