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

Method Box

Examples/NoModules/Chapter 12/Ex12_06/Box.h:23–27  ·  view source on GitHub ↗

Constructor definition (inline because this member is defined in a header file: see online Appendix A)

Source from the content-addressed store, hash-verified

21// Constructor definition
22// (inline because this member is defined in a header file: see online Appendix A)
23inline Box::Box(double length, double width, double height)
24 : m_length{ length }, m_width{ width }, m_height{ height }
25{
26 std::cout << "Box constructor called." << std::endl;
27}
28
29// Member function definition
30// (inline because this member is defined in a header file: see online Appendix A)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected