Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ getValue
Method
getValue
Exercises/NoModules/Chapter 12/Soln12_02/Integer.h:23–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
Integer(const Integer& obj); // Copy constructor
22
23
int getValue() const { return m_value; }
24
void setValue(int value) { m_value = value; }
25
26
// int compare(Integer obj) const; // Compare function with value parameter
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected