Ajout des destructeurs pour pouvoir delete ces derniers
This commit is contained in:
parent
90ed0e4604
commit
258c3eecf7
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,7 @@ class Organisme {
|
||||||
class Animal: public Organisme {
|
class Animal: public Organisme {
|
||||||
public:
|
public:
|
||||||
Animal(void);
|
Animal(void);
|
||||||
|
virtual ~Animal(void);
|
||||||
|
|
||||||
// Animal carnivore ?
|
// Animal carnivore ?
|
||||||
virtual bool carnivore(void) const noexcept = 0;
|
virtual bool carnivore(void) const noexcept = 0;
|
||||||
|
@ -73,6 +74,7 @@ class Sel: public Organisme {
|
||||||
class Mouton: public Animal {
|
class Mouton: public Animal {
|
||||||
public:
|
public:
|
||||||
Mouton(void);
|
Mouton(void);
|
||||||
|
~Mouton(void);
|
||||||
|
|
||||||
bool carnivore(void) const noexcept;
|
bool carnivore(void) const noexcept;
|
||||||
|
|
||||||
|
@ -84,6 +86,7 @@ class Mouton: public Animal {
|
||||||
class Loup: public Animal {
|
class Loup: public Animal {
|
||||||
public:
|
public:
|
||||||
Loup(void);
|
Loup(void);
|
||||||
|
~Loup(void);
|
||||||
|
|
||||||
bool carnivore(void) const noexcept;
|
bool carnivore(void) const noexcept;
|
||||||
|
|
||||||
|
|
Reference in a new issue