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

Method Box

Examples/NoModules/Chapter 12/Ex12_05/Ex12_05.cpp:9–9  ·  view source on GitHub ↗

Constructor for a cube (explicit!)

Source from the content-addressed store, hash-verified

7 Box(double length, double width, double height);
8 explicit Box(double side); // Constructor for a cube (explicit!)
9 Box() = default; // Defaulted default constructor
10
11 double volume(); // Function to calculate the volume of a box
12

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected