/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Zombie.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/15 13:44:24 by bchanot #+# #+# */ /* Updated: 2025/07/15 14:48:08 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "Zombie.hpp" #include Zombie::Zombie(std::string name) : _name(name) { std::cout << "Constructor of " << name << "called" << std::endl; return ; } Zombie::Zombie(void) : _name("defaultName") { std::cout << "Constructor of " << this->_name << "called" << std::endl; return ; } Zombie::~Zombie(void) { std::cout << "Destructor of " << this->_name << "called" << std::endl; return ; } void Zombie::announce(void) const { std::cout << this->_name << ": BraiiiiiiiinnnnzzzzZ..." << std::endl; } void Zombie::setZombie(std::string name) { this->_name = name; }