Brain added
This commit is contained in:
33
ex01/Animal/Animal.hpp
Normal file
33
ex01/Animal/Animal.hpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Animal.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/06 02:27:27 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 02:28:09 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ANIMAL_HPP
|
||||
|
||||
# define ANIMAL_HPP
|
||||
|
||||
# include <iostream>
|
||||
|
||||
class Animal
|
||||
{
|
||||
protected:
|
||||
std::string type;
|
||||
public:
|
||||
Animal();
|
||||
virtual ~Animal();
|
||||
Animal(const Animal &other);
|
||||
Animal& operator=(const Animal &other);
|
||||
|
||||
virtual void makeSound() const;
|
||||
std::string getType() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user