MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / sound

Method sound

Exercises/Modules/Chapter 15/Soln15_01/Animals.cpp:17–20  ·  view source on GitHub ↗

Make like a sheep

Source from the content-addressed store, hash-verified

15
16// Make like a sheep
17std::string_view Sheep::sound() const
18{
19 return "Baaaa!!";
20}
21
22// Make like a dog
23std::string_view Dog::sound() const

Callers 1

showAnimalsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected