fix: WrongCat in ex02
This commit is contained in:
parent
1341068efe
commit
882131784b
@ -22,3 +22,8 @@ WrongCat::WrongCat(const WrongCat& src): WrongAnimal()
|
||||
{
|
||||
*this = src;
|
||||
}
|
||||
|
||||
void WrongCat::makeSound() const
|
||||
{
|
||||
std::cout << "Meow Meow !" << std::endl;
|
||||
}
|
||||
|
@ -11,4 +11,6 @@ class WrongCat : public WrongAnimal
|
||||
WrongCat &operator=(const WrongCat& src);
|
||||
WrongCat();
|
||||
~WrongCat();
|
||||
|
||||
void makeSound() const;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user