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