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

Method Integer

Exercises/Modules/Chapter 12/Soln12_05/Integer.cpp:10–14  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

8
9// Constructor
10Integer::Integer(int value) : m_value{value}
11{
12 ++s_count;
13 std::cout << "Object created." << std::endl;
14}
15
16// Copy constructor
17Integer::Integer(const Integer& obj) : m_value{obj.m_value}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected