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