d01 ex00 ok

This commit is contained in:
hugogogo
2022-02-05 16:11:23 +01:00
parent a30edf91ab
commit b7b56f5a83
7 changed files with 147 additions and 0 deletions

13
d01/ex00/Zombie.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "Zombie.hpp"
Zombie::Zombie( std::string name ) {
this->_name = name;
std::cout << this->_name << " has been created" << std::endl;
}
Zombie::~Zombie() {
std::cout << this->_name << " has been destroyed" << std::endl;
}
void Zombie::announce( void ) {
std::cout << this->_name << ": BraiiiiiiinnnzzzZ..." << std::endl;
}