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

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* AAnimal.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/24 09:02:10 by narnaud #+# #+# */
/* Updated: 2022/06/24 12:14:54 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include <string>
#include <iostream>
using std::string;
using std::cout;
using std::endl;
class AAnimal{
public:
AAnimal(void);
AAnimal(string type);
AAnimal(AAnimal const & src);
virtual ~AAnimal(void);
AAnimal & operator= (AAnimal const & src);
string getType(void) const;
virtual void makeSound(void) const = 0;
protected:
string _type;
};