d04 ex00 gestion virtual destructor et ajout messages constructors et destructors
This commit is contained in:
29
d04/ex00/Animal.hpp
Normal file
29
d04/ex00/Animal.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef ANIMAL_HPP
|
||||
# define ANIMAL_HPP
|
||||
|
||||
# include "color.h"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
class Animal {
|
||||
|
||||
public:
|
||||
|
||||
Animal( void );
|
||||
Animal( Animal const & src );
|
||||
virtual ~Animal( void );
|
||||
Animal & operator=( Animal const & rhs );
|
||||
|
||||
virtual void makeSound() const;
|
||||
std::string getType() const;
|
||||
|
||||
protected:
|
||||
|
||||
std::string type;
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user