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

Method volume

Exercises/NoModules/Chapter 13/Soln13_04/Box.h:15–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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; }
16
17 // Accessors
18 double getLength() const { return m_length; }

Callers 1

operator<=>Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected