MCPcopy 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
41std::string_view Sheep::sound() const
42{
43 return "Baaaa!!";
44}
45
46// Make like a dog
47std::string_view Dog::sound() const

Callers 1

showAnimalsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected