fix: WrongCat in ex02

This commit is contained in:
Camille Chauvet 2023-08-09 15:55:13 +00:00
parent 1341068efe
commit 882131784b
2 changed files with 7 additions and 0 deletions

View File

@ -22,3 +22,8 @@ WrongCat::WrongCat(const WrongCat& src): WrongAnimal()
{
*this = src;
}
void WrongCat::makeSound() const
{
std::cout << "Meow Meow !" << std::endl;
}

View File

@ -11,4 +11,6 @@ class WrongCat : public WrongAnimal
WrongCat &operator=(const WrongCat& src);
WrongCat();
~WrongCat();
void makeSound() const;
};