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

Method Box

Examples/Modules/Chapter 12/Ex12_02/Ex12_02.cpp:33–39  ·  view source on GitHub ↗

Constructor definition

Source from the content-addressed store, hash-verified

31
32// Constructor definition
33Box::Box(double length, double width, double height)
34{
35 std::cout << "Box constructor called." << std::endl;
36 m_length = length;
37 m_width = width;
38 m_height = height;
39}
40
41// Member function definition
42double Box::volume()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected