feat(ex01): it works

This commit is contained in:
Khaïs COLIN 2025-05-12 12:03:57 +02:00
parent b9ff91c653
commit 1a167101bb
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
6 changed files with 94 additions and 0 deletions

12
ex01/Zombie.cpp Normal file
View file

@ -0,0 +1,12 @@
#include "Zombie.hpp"
#include <iostream>
void Zombie::announce(void) {
std::cout << name << ": " << "BraiiiiiiinnnzzzZ..." << std::endl;
}
void Zombie::setName(std::string name) { this->name = name; }
Zombie::Zombie() {}
Zombie::~Zombie() { std::cout << name << " is heading out." << std::endl; }