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

Method Box

Examples/NoModules/Chapter 12/Ex12_11/Box.cpp:5–9  ·  view source on GitHub ↗

Constructor definition

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected