From 7d6a4c877de8048ec5fbea4a563b3d09c8976105 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 12 Jan 2020 20:20:12 +0100 Subject: cpp01 00 -> 04 --- cpp01/ex02/Zombie.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cpp01/ex02/Zombie.cpp (limited to 'cpp01/ex02/Zombie.cpp') diff --git a/cpp01/ex02/Zombie.cpp b/cpp01/ex02/Zombie.cpp new file mode 100644 index 0000000..2ea23b6 --- /dev/null +++ b/cpp01/ex02/Zombie.cpp @@ -0,0 +1,14 @@ +#include +#include "Zombie.hpp" + +Zombie::Zombie(std::string n, std::string t) +{ + name = n; + type = t; + announce(); +} + +void Zombie::announce() +{ + std::cout << "<" << name << " (" << type << ")> Braiiiiiiinnnssss..." << std::endl; +} -- cgit