From 9fce5a9160a409db62932e89f253304603ce03bc Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Thu, 24 Oct 2024 14:26:24 +0200 Subject: [PATCH] Make ex03 comply with the OCF --- ex03/HumanA.h | 4 ++++ ex03/HumanB.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ex03/HumanA.h b/ex03/HumanA.h index e8f4881..98c8d9a 100644 --- a/ex03/HumanA.h +++ b/ex03/HumanA.h @@ -10,6 +10,10 @@ class HumanA std::string m_name; Weapon &m_weapon; + HumanA(); + HumanA(const HumanA &other); + HumanA &operator=(const HumanA &other); + public: HumanA(std::string name, Weapon &weapon); ~HumanA(); diff --git a/ex03/HumanB.h b/ex03/HumanB.h index 241ece7..73a08c4 100644 --- a/ex03/HumanB.h +++ b/ex03/HumanB.h @@ -10,6 +10,10 @@ class HumanB std::string m_name; Weapon *m_weapon; + HumanB(); + HumanB(const HumanB &other); + HumanB &operator=(const HumanB &other); + public: HumanB(std::string name = "human", Weapon *weapon = NULL); ~HumanB(); -- 2.30.2