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_03/Animals.cpp:7–10 ·
view source on GitHub ↗
Identify the animal
Source
from the content-addressed store, hash-verified
5
6
// Identify the animal
7
void Animal::who() const
8
{
9
std::cout <<
"My name is "
<< m_name <<
" and I weigh "
<< m_weight <<
"lbs."
<< std::endl;
10
}
11
12
// Identify the Lion
13
void Lion::who() const
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected