1
0
This repository has been archived on 2024-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
CPP_Module_01/ex01/Zombie.cpp

31 lines
1.2 KiB
C++
Raw Permalink Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Zombie.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/04 11:40:41 by adjoly #+# #+# */
/* Updated: 2024/11/04 18:47:10 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
#include <iostream>
Zombie::Zombie() {
std::cout << "Zombie born" << std::endl;
}
void Zombie::setName(std::string newName) {
this->name = newName;
}
Zombie::~Zombie(void) {
std::cout << this->name << " destroyed" << std::endl;
}
void Zombie::announce(void) {
std::cout << this->name << ": BraiiiiiiinnnzzzZ..." << std::endl;
}