diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-12-11 12:11:50 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-12-11 12:11:50 +0100 |
| commit | c10aa969c60cedef893146307fa319250901465a (patch) | |
| tree | e3dfa785191047ee8e2ed533f963fe7c5cd7aacf /cpp04/ex01/PlasmaRifle.hpp | |
| parent | 6169d697a5be59426d034b878bffc848de49491d (diff) | |
| download | piscine_cpp-c10aa969c60cedef893146307fa319250901465a.tar.gz piscine_cpp-c10aa969c60cedef893146307fa319250901465a.tar.bz2 piscine_cpp-c10aa969c60cedef893146307fa319250901465a.zip | |
Fixing cpp04 according to correction
Diffstat (limited to 'cpp04/ex01/PlasmaRifle.hpp')
| -rw-r--r-- | cpp04/ex01/PlasmaRifle.hpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cpp04/ex01/PlasmaRifle.hpp b/cpp04/ex01/PlasmaRifle.hpp index 8ce7b0d..53088a9 100644 --- a/cpp04/ex01/PlasmaRifle.hpp +++ b/cpp04/ex01/PlasmaRifle.hpp @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 12:15:47 by charles #+# #+# */ -/* Updated: 2020/11/12 13:36:55 by cacharle ### ########.fr */ +/* Updated: 2020/12/11 10:55:04 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,12 +22,24 @@ public: PlasmaRifle(); PlasmaRifle(PlasmaRifle const& other); PlasmaRifle& operator=(PlasmaRifle const& other); - ~PlasmaRifle(); + virtual ~PlasmaRifle(); virtual void attack() const; private: }; +class ThisIsNotAPlasmaRifle : public AWeapon +{ +public: + ThisIsNotAPlasmaRifle(); + ThisIsNotAPlasmaRifle(ThisIsNotAPlasmaRifle const& other); + ThisIsNotAPlasmaRifle& operator=(ThisIsNotAPlasmaRifle const& other); + virtual ~ThisIsNotAPlasmaRifle(); + + virtual void attack() const; + +private: +}; #endif |
