「✨」 feat(Ex00): working
This commit is contained in:
38
ex00/WrongCat.cpp
Normal file
38
ex00/WrongCat.cpp
Normal file
@ -0,0 +1,38 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* WrongCat.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/12/01 19:49:11 by adjoly #+# #+# */
|
||||
/* Updated: 2024/12/04 13:49:51 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "WrongCat.hpp"
|
||||
|
||||
WrongCat::WrongCat(void) : Animal("WrongCat"){
|
||||
log("➕", "WrongCat", "", "construtor called");
|
||||
}
|
||||
|
||||
WrongCat::~WrongCat(void) {
|
||||
log("➖", "WrongCat", "", "destructor called");
|
||||
}
|
||||
|
||||
WrongCat::WrongCat(const WrongCat &cpy) : Animal("WrongCat"){
|
||||
log("➕", "WrongCat", _type, "copy construtor called");
|
||||
*this = cpy;
|
||||
}
|
||||
|
||||
WrongCat &WrongCat::operator=(const WrongCat &cpy) {
|
||||
log("🟰", "WrongCat", "", "copy assignment construtor called");
|
||||
if (this != &cpy) {
|
||||
this->_type = cpy._type;
|
||||
}
|
||||
return (*this);
|
||||
}
|
||||
|
||||
void WrongCat::makeSound(void) const {
|
||||
log("🔊", "WrongCat", "", "wwwwwwwwooooooooeeeeeeeeemmmmmmm");
|
||||
}
|
Reference in New Issue
Block a user