AnimalWrong.hpp 1.4 KB

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