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_03/Animals.cpp:41–44 ·
view source on GitHub ↗
Make like a sheep
Source
from the content-addressed store, hash-verified
39
40
// Make like a sheep
41
std::string_view Sheep::sound() const
42
{
43
return
"Baaaa!!"
;
44
}
45
46
// Make like a dog
47
std::string_view Dog::sound() const
Callers
1
showAnimals
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected