cpp/cpp04/ex02/Animal.hpp
Alexandre POMMIER 1a546db3d8 cpp04 add test
2022-08-03 20:01:32 +02:00

37 lines
1.3 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Animal.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/14 02:05:20 by apommier #+# #+# */
/* Updated: 2022/08/03 19:52:23 by apommier ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ANIMAL_HPP
# define ANIMAL_HPP
#include "Brain.hpp"
#include <iostream>
class Animal {
public:
Animal();
Animal(const Animal& copy);
virtual ~Animal();
virtual Animal &operator=(const Animal& rhs);
virtual void makeSound(void) const = 0;
virtual Brain *getBrain( void ) const = 0;
std::string getType(void) const;
protected:
std::string type;
};
#endif