feat(ex01): it works
This commit is contained in:
parent
b9ff91c653
commit
1a167101bb
6 changed files with 94 additions and 0 deletions
12
ex01/Zombie.cpp
Normal file
12
ex01/Zombie.cpp
Normal 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; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue