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

Method Box

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

Source from the content-addressed store, hash-verified

5{
6public:
7 Box() : Box{ 1.0, 1.0, 1.0} {} // A delegating default constructor
8 Box(double length, double width, double height);
9
10 double volume() const; // Function to calculate the volume of a box

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected