MCPcopy 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

5import <format>;
6
7double Box::volume() const
8{
9 return m_length * m_width * m_height;
10}
11
12// Overloaded += operator
13Box& Box::operator+=(const Box& aBox)

Callers 2

mainFunction · 0.45
operator<=>Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected