Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ Carton
Method
Carton
Examples/NoModules/Chapter 14/Ex14_01A/Carton.h:12–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
{
11
public:
12
explicit Carton(std::string_view mat =
"Cardboard"
) : m_material {mat} {}
13
using Box::volume; // Inherit as public
14
15
private:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected