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

Method Box

Examples/NoModules/Chapter 12/Ex12_03/Ex12_03.cpp:29–33  ·  view source on GitHub ↗

Constructor definition

Source from the content-addressed store, hash-verified

27
28// Constructor definition
29Box::Box(double length, double width, double height)
30 : m_length{length}, m_width{width}, m_height{height}
31{
32 std::cout << "Box constructor called." << std::endl;
33}
34
35// Member function definition
36double Box::volume()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected