WrongCat initialization

This commit is contained in:
2025-11-10 20:49:52 +01:00
parent 783d649289
commit 2438853723

View File

@@ -23,7 +23,7 @@ WrongCat::~WrongCat()
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;
*this = other;