You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
32 lines
1.2 KiB
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Animal.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/06/24 09:02:10 by narnaud #+# #+# */
|
|
/* Updated: 2022/06/24 10:07:53 by narnaud ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <iostream>
|
|
using std::string;
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
class Animal{
|
|
public:
|
|
Animal(void);
|
|
Animal(string type);
|
|
Animal(Animal const & src);
|
|
virtual ~Animal(void);
|
|
Animal & operator= (Animal const & src);
|
|
string getType(void) const;
|
|
virtual void makeSound(void) const;
|
|
protected:
|
|
string _type;
|
|
};
|
|
|