Ajout des destructeurs pour pouvoir delete ces derniers

This commit is contained in:
Mylloon 2022-04-02 17:07:22 +02:00
parent 90ed0e4604
commit 258c3eecf7
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -49,6 +49,7 @@ class Organisme {
class Animal: public Organisme {
public:
Animal(void);
virtual ~Animal(void);
// Animal carnivore ?
virtual bool carnivore(void) const noexcept = 0;
@ -73,6 +74,7 @@ class Sel: public Organisme {
class Mouton: public Animal {
public:
Mouton(void);
~Mouton(void);
bool carnivore(void) const noexcept;
@ -84,6 +86,7 @@ class Mouton: public Animal {
class Loup: public Animal {
public:
Loup(void);
~Loup(void);
bool carnivore(void) const noexcept;