Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ getValue
Method
getValue
Examples/NoModules/Chapter 13/Ex13_07/Integer.h:8–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
public:
7
Integer(int value = 0) : m_value{value} {}
8
int getValue() const { return m_value; }
9
void setValue(int value) { m_value = value; }
10
private:
11
int m_value;
Callers
7
operator+
Function · 0.45
operator-
Function · 0.45
operator*
Function · 0.45
operator/
Function · 0.45
operator%
Function · 0.45
main
Function · 0.45
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected