Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ who
Method
who
Exercises/Modules/Chapter 14/Soln14_04/Person.cpp:17–20 ·
view source on GitHub ↗
Display details of Person object
Source
from the content-addressed store, hash-verified
15
16
// Display details of Person object
17
void Person::who() const
18
{
19
std::cout <<
"\nThis is "
<< m_name <<
" who is "
<< m_age <<
" years old."
<< std::endl;
20
}
21
22
void Person::haveBirthday()
23
{
Callers
3
main
Function · 0.45
main
Function · 0.45
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected