Brain added
This commit is contained in:
35
ex01/Cat/Cat.hpp
Normal file
35
ex01/Cat/Cat.hpp
Normal file
@@ -0,0 +1,35 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Cat.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 CAT_HPP
|
||||
|
||||
# define CAT_HPP
|
||||
|
||||
# include <iostream>
|
||||
# include "../Animal/Animal.hpp"
|
||||
# include "../Brain/Brain.hpp"
|
||||
|
||||
class Cat : public Animal
|
||||
{
|
||||
private:
|
||||
Brain *brain;
|
||||
|
||||
public:
|
||||
Cat();
|
||||
~Cat();
|
||||
Cat(const Cat &other);
|
||||
Cat& operator=(const Cat &other);
|
||||
|
||||
void makeSound() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user