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 {
|
||||
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;
|
||||
|
||||
|
|
Reference in a new issue