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

Method Integer

Exercises/Modules/Chapter 12/Soln12_02/Integer.cpp:5–9  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

3
4// Constructor
5Integer::Integer(int value)
6 : m_value{ value }
7{
8 std::cout << "Object created." << std::endl;
9}
10
11// Copy constructor
12Integer::Integer(const Integer& obj)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected