Fixed headers and copy constructor

This commit is contained in:
2025-11-21 12:18:32 +01:00
parent d4d8891a6b
commit c624ced97f
12 changed files with 32 additions and 36 deletions

View File

@@ -1,12 +1,12 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Animal.cpp :+: :+: :+: */
/* WrongCat.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/06 02:27:27 by aortigos #+# #+# */
/* Updated: 2025/09/06 02:28:09 by aortigos ### ########.fr */
/* Created: 2025/11/21 11:44:04 by aortigos #+# #+# */
/* Updated: 2025/11/21 11:44:48 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,13 +14,13 @@
WrongCat::WrongCat() : WrongAnimal()
{
std::cout << "Cat has been created" << std::endl;
std::cout << "WrongCat has been created" << std::endl;
this->type = "WrongCat";
}
WrongCat::~WrongCat()
{
std::cout << "Cat has been destroyed" << std::endl;
std::cout << "WrongCat has been destroyed" << std::endl;
}
WrongCat::WrongCat(const WrongCat &other) : WrongAnimal(other)