From c10aa969c60cedef893146307fa319250901465a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 11 Dec 2020 12:11:50 +0100 Subject: Fixing cpp04 according to correction --- cpp04/ex00/Peon.hpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'cpp04/ex00/Peon.hpp') diff --git a/cpp04/ex00/Peon.hpp b/cpp04/ex00/Peon.hpp index 0f50207..7fe1e6b 100644 --- a/cpp04/ex00/Peon.hpp +++ b/cpp04/ex00/Peon.hpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 20:50:54 by charles #+# #+# */ -/* Updated: 2020/11/12 13:00:49 by cacharle ### ########.fr */ +/* Updated: 2020/12/11 10:26:58 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -23,7 +23,7 @@ public: Peon(std::string const& name); Peon& operator=(Peon const& other); Peon(Peon const& other); - ~Peon(); + virtual ~Peon(); virtual void getPolymorphed() const; @@ -31,4 +31,18 @@ private: Peon(); }; +class Rat : public Victim +{ +public: + Rat(std::string const& name); + Rat& operator=(Rat const& other); + Rat(Rat const& other); + virtual ~Rat(); + + virtual void getPolymorphed() const; + +private: + Rat(); +}; + #endif -- cgit