update: module01/ex00

This commit is contained in:
Raphael 2024-11-04 16:42:43 +01:00
parent 6e1b64938d
commit 07022df125
10 changed files with 244 additions and 2 deletions

28
cpp01/ex00/Zombie.cpp Normal file
View file

@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Zombie.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/04 16:10:21 by rparodi #+# #+# */
/* Updated: 2024/11/04 16:34:30 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
Zombie::Zombie( std::string name )
{
_name = name;
}
Zombie::~Zombie()
{
std::cout << "Zombie's hunter: killed " << _name << std::endl;
}
void Zombie::announce()
{
std::cout << _name << ": BraiiiiiiinnnzzzZ..." << std::endl;
}