Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ sound
Method
sound
Exercises/Modules/Chapter 15/Soln15_05/Animals.cpp:72–75 ·
view source on GitHub ↗
Make like a sheep
Source
from the content-addressed store, hash-verified
70
71
// Make like a sheep
72
std::string_view Sheep::sound() const
73
{
74
return
"Baaaa!!"
;
75
}
76
77
// Make like a dog
78
std::string_view Dog::sound() const
Callers
1
showAnimals
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected