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

Method Carton

Examples/NoModules/Chapter 15/Ex15_07A/Carton.h:12–14  ·  view source on GitHub ↗

Constructor explicitly calling the base constructor

Source from the content-addressed store, hash-verified

10public:
11 // Constructor explicitly calling the base constructor
12 Carton(double l, double w, double h, std::string_view mat = "cardboard")
13 : Box{l, w, h}, m_material{mat}
14 {}
15 ~Carton() override = default;
16
17 // Function to calculate the volume of a Carton object

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected