Animal.hpp 1.4 KB

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