Cat.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* Cat.hpp :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2025/12/18 16:28:27 by bchanot #+# #+# */
  9. /* Updated: 2025/12/18 17:31:14 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef CAT_HPP
  13. # define CAT_HPP
  14. # include <iostream>
  15. # include <string>
  16. #include "Animal.hpp"
  17. #include "Brain.hpp"
  18. class Cat : public Animal
  19. {
  20. public:
  21. Cat();
  22. Cat( Cat const & src );
  23. ~Cat();
  24. Cat & operator=( Cat const & rhs );
  25. virtual void makeSound(void) const;
  26. private:
  27. Brain * _brain;
  28. };
  29. std::ostream & operator<<( std::ostream & o, Cat const & i );
  30. #endif /* ************************************************************* CAT_H */