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

Method Box

Examples/Modules/Chapter 12/Ex12_12/Box.cpp:6–10  ·  view source on GitHub ↗

Constructor definition

Source from the content-addressed store, hash-verified

4
5// Constructor definition
6Box::Box(double length, double width, double height)
7 : m_length{ length }, m_width{ width }, m_height{ height }
8{
9 std::cout << "Box constructor called." << std::endl;
10}
11
12// Const member function definition
13double Box::volume() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected