Output messages fixed
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/11/21 11:36:06 by aortigos #+# #+# */
|
/* Created: 2025/11/21 11:36:06 by aortigos #+# #+# */
|
||||||
/* Updated: 2025/11/21 11:36:10 by aortigos ### ########.fr */
|
/* Updated: 2025/11/21 11:40:22 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -14,12 +14,12 @@
|
|||||||
|
|
||||||
WrongAnimal::WrongAnimal() : type("WrongAnimal")
|
WrongAnimal::WrongAnimal() : type("WrongAnimal")
|
||||||
{
|
{
|
||||||
std::cout << "Animal has been created" << std::endl;
|
std::cout << "WrongAnimal has been created" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
WrongAnimal::~WrongAnimal()
|
WrongAnimal::~WrongAnimal()
|
||||||
{
|
{
|
||||||
std::cout << "Animal has been destroyed" << std::endl;
|
std::cout << "WrongAnimal has been destroyed" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
WrongAnimal::WrongAnimal(const WrongAnimal &other)
|
WrongAnimal::WrongAnimal(const WrongAnimal &other)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/11/21 11:38:27 by aortigos #+# #+# */
|
/* Created: 2025/11/21 11:38:27 by aortigos #+# #+# */
|
||||||
/* Updated: 2025/11/21 11:38:49 by aortigos ### ########.fr */
|
/* Updated: 2025/11/21 11:40:44 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -14,13 +14,13 @@
|
|||||||
|
|
||||||
WrongCat::WrongCat() : WrongAnimal()
|
WrongCat::WrongCat() : WrongAnimal()
|
||||||
{
|
{
|
||||||
std::cout << "Cat has been created" << std::endl;
|
std::cout << "WrongCat has been created" << std::endl;
|
||||||
this->type = "WrongCat";
|
this->type = "WrongCat";
|
||||||
}
|
}
|
||||||
|
|
||||||
WrongCat::~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)
|
WrongCat::WrongCat(const WrongCat &other) : WrongAnimal(other)
|
||||||
|
|||||||
Reference in New Issue
Block a user