AAnimal.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 18:45:42 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef AANIMAL_HPP
  13. # define AANIMAL_HPP
  14. # include <iostream>
  15. # include <string>
  16. class AAnimal
  17. {
  18. public:
  19. AAnimal();
  20. AAnimal( AAnimal const & src );
  21. AAnimal( std::string const & type );
  22. virtual ~AAnimal();
  23. AAnimal & operator=( AAnimal const & rhs );
  24. virtual void makeSound(void) const = 0;
  25. protected:
  26. std::string type;
  27. };
  28. std::ostream & operator<<( std::ostream & o, AAnimal const & i );
  29. #endif /* ********************************************************** ANIMAL_H */