| 1 |
#ifndef _Dog_h_ |
| 2 |
#define _Dog_h_ |
| 3 |
|
| 4 |
#include <Animal.h> |
| 5 |
#include <string> |
| 6 |
|
| 7 |
class Dog : public Animal { |
| 8 |
public: |
| 9 |
Dog(const std::string& name); |
| 10 |
|
| 11 |
void Bark() const; |
| 12 |
void MakeSound() const; |
| 13 |
|
| 14 |
Dog* Clone() const; |
| 15 |
|
| 16 |
static void MakeDogBark(const Dog& d); |
| 17 |
}; |
| 18 |
|
| 19 |
|
| 20 |
#endif |