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

Method Integer

Exercises/Modules/Chapter 12/Soln12_04/Integer.cpp:21–24  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

19
20// Constructor
21Integer::Integer(int value) : m_value{value}
22{
23 std::cout << "Object created." << std::endl;
24}
25
26// Copy constructor
27Integer::Integer(const Integer& obj) : m_value{ obj.m_value }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected