34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* animal.hpp :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2024/11/30 16:33:08 by adjoly #+# #+# */
|
||
|
/* Updated: 2024/12/01 20:22:41 by adjoly ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class Animal {
|
||
|
protected:
|
||
|
std::string _type;
|
||
|
|
||
|
public:
|
||
|
Animal(void);
|
||
|
~Animal(void);
|
||
|
Animal(std::string);
|
||
|
Animal(const Animal &);
|
||
|
Animal &operator=(const Animal &);
|
||
|
|
||
|
std::string getType(void) const;
|
||
|
|
||
|
virtual void makeSound(void) const;
|
||
|
};
|
||
|
|
||
|
void log(std::string, std::string, std::string, std::string);
|