| 13 | }; |
| 14 | |
| 15 | class Dog : public Animal { |
| 16 | public: |
| 17 | Dog(std::string name, std::string breed) |
| 18 | : Animal(std::move(name)), breed_(std::move(breed)) {} |
| 19 | |
| 20 | std::string speak() const override { |
| 21 | return name() + " barks!"; |
| 22 | } |
| 23 | |
| 24 | private: |
| 25 | std::string breed_; |
| 26 | }; |
| 27 | |
| 28 | int main() { |
| 29 | Dog dog("Rex", "Shepherd"); |
nothing calls this directly
no outgoing calls
no test coverage detected