cpp/cpp01/ex01/Zombie.cpp
2022-06-10 14:06:20 +02:00

35 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Zombie.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/08 16:30:20 by apommier #+# #+# */
/* Updated: 2022/06/10 13:55:13 by apommier ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
Zombie::Zombie(void)
{
std::cout << "Zombie created\n";
return ;
}
Zombie::~Zombie(void)
{
std::cout << "Zombie " << this->_name << " destroyed\n";
return ;
}
void Zombie::announce(void)
{
std::cout << this->_name << ": BraiiiiiiinnnzzzZ...\n";
}
void Zombie::setName(std::string name)
{
this->_name = name;
}