cpp01...
This commit is contained in:
33
ex01/Zombie/Zombie.cpp
Normal file
33
ex01/Zombie/Zombie.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Zombie.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/05 16:46:34 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 01:36:29 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Zombie.hpp"
|
||||
|
||||
Zombie::Zombie()
|
||||
{
|
||||
this->name = "NULL";
|
||||
}
|
||||
|
||||
Zombie::~Zombie()
|
||||
{
|
||||
std::cout << this->name << " has died.... again..." << std::endl;
|
||||
}
|
||||
|
||||
void Zombie::setName(std::string str)
|
||||
{
|
||||
this->name = str;
|
||||
}
|
||||
|
||||
void Zombie::announce( void )
|
||||
{
|
||||
std::cout << this->name << ": BraiiiiiiinnnzzzZ..." << std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user