cpp01/ex00/Zombie.cpp

11 lines
277 B
C++
Raw Normal View History

2025-05-12 12:01:05 +02:00
#include "Zombie.hpp"
#include <iostream>
void Zombie::announce(void) {
std::cout << name << ": " << "BraiiiiiiinnnzzzZ..." << std::endl;
}
Zombie::Zombie(std::string name) { this->name = name; }
Zombie::~Zombie() { std::cout << name << " is heading out." << std::endl; }