2024-12-01 20:24:38 +01:00
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
/* */
|
|
|
|
|
/* ::: :::::::: */
|
2024-12-06 16:06:57 +01:00
|
|
|
|
/* WrongCat.cpp :+: :+: :+: */
|
2024-12-01 20:24:38 +01:00
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
|
/* Created: 2024/12/01 19:49:11 by adjoly #+# #+# */
|
2024-12-06 16:06:57 +01:00
|
|
|
|
/* Updated: 2024/12/06 15:55:37 by adjoly ### ########.fr */
|
2024-12-01 20:24:38 +01:00
|
|
|
|
/* */
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
2024-12-06 16:06:57 +01:00
|
|
|
|
#include "WrongCat.hpp"
|
2024-12-01 20:24:38 +01:00
|
|
|
|
|
2024-12-06 16:06:57 +01:00
|
|
|
|
WrongCat::WrongCat(void) : WrongAnimal("WrongCat"){
|
|
|
|
|
log("➕", "WrongCat", "", "construtor called");
|
2024-12-01 20:24:38 +01:00
|
|
|
|
}
|
|
|
|
|
|
2024-12-06 16:06:57 +01:00
|
|
|
|
WrongCat::~WrongCat(void) {
|
|
|
|
|
log("➖", "WrongCat", "", "destructor called");
|
2024-12-01 20:24:38 +01:00
|
|
|
|
}
|
|
|
|
|
|
2024-12-06 16:06:57 +01:00
|
|
|
|
WrongCat::WrongCat(const WrongCat &cpy) : WrongAnimal("WrongCat"){
|
|
|
|
|
log("➕", "WrongCat", _type, "copy construtor called");
|
2024-12-01 20:24:38 +01:00
|
|
|
|
*this = cpy;
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-06 16:06:57 +01:00
|
|
|
|
WrongCat &WrongCat::operator=(const WrongCat &cpy) {
|
|
|
|
|
log("🟰", "WrongCat", "", "copy assignment construtor called");
|
2024-12-01 20:24:38 +01:00
|
|
|
|
if (this != &cpy) {
|
|
|
|
|
this->_type = cpy._type;
|
|
|
|
|
}
|
|
|
|
|
return (*this);
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-06 16:06:57 +01:00
|
|
|
|
void WrongCat::makeSound(void) const {
|
|
|
|
|
log("🔊", "WrongCat", "", "wwwwwwwwooooooooeeeeeeeeemmmmmmm");
|
2024-12-01 20:24:38 +01:00
|
|
|
|
}
|