summaryrefslogtreecommitdiff
path: root/ex01/Zombie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ex01/Zombie.cpp')
-rw-r--r--ex01/Zombie.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/ex01/Zombie.cpp b/ex01/Zombie.cpp
new file mode 100644
index 0000000..bbd0a65
--- /dev/null
+++ b/ex01/Zombie.cpp
@@ -0,0 +1,28 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* Zombie.cpp :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2025/02/10 10:27:11 by dkaiser #+# #+# */
+/* Updated: 2025/02/10 10:46:03 by dkaiser ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "Zombie.hpp"
+#include <iostream>
+
+Zombie::Zombie(const std::string &name)
+ :name(name)
+{}
+
+Zombie::~Zombie(void)
+{
+ std::cout << name << " died." << std::endl;
+}
+
+void Zombie::announce(void)
+{
+ std::cout << name << ": BraiiiiiiinnnzzzZ..." << std::endl;
+}