blob: f44692cbe7dc140bcb505bc1047cfe581295895e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "Dog.h"
void Dog::sayHello() const
{
std::cout << "Hello, I am a Dog!" << std::endl;
}
Animal* Dog::clone() const
{
Animal* newObj = new Dog(*this); //copy constr of Mouse
return newObj;
}
|