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

Method Box

Examples/NoModules/Chapter 13/Ex13_04/Box.h:12–12  ·  view source on GitHub ↗

Constructors

Source from the content-addressed store, hash-verified

10public:
11 // Constructors
12 Box() = default;
13 Box(double l, double w, double h) : m_length{ l }, m_width{ w }, m_height{ h } {}
14
15 double volume() const { return m_length * m_width * m_height; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected