WrongCat initialization
This commit is contained in:
@@ -23,7 +23,7 @@ WrongCat::~WrongCat()
|
|||||||
std::cout << "Cat has been destroyed" << std::endl;
|
std::cout << "Cat has been destroyed" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
WrongCat::WrongCat(const WrongCat &other)
|
WrongCat::WrongCat(const WrongCat &other) : WrongAnimal(other)
|
||||||
{
|
{
|
||||||
std::cout << "WrongCat copied" << std::endl;
|
std::cout << "WrongCat copied" << std::endl;
|
||||||
*this = other;
|
*this = other;
|
||||||
|
|||||||
Reference in New Issue
Block a user