ajout sujets et fini ex01 d01

This commit is contained in:
hugogogo
2022-02-05 17:11:24 +01:00
parent 5e3d23ba8f
commit e6929e8e12
7 changed files with 141 additions and 0 deletions

26
d01/ex01/Zombie.cpp Normal file
View File

@@ -0,0 +1,26 @@
#include "Zombie.hpp"
Zombie::Zombie() {
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;
}
void Zombie::put_name( std::string name ) {
this->_name = name;
}