| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* Animal.hpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/12/18 16:26:41 by bchanot #+# #+# */
- /* Updated: 2025/12/18 18:15:39 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #ifndef ANIMAL_HPP
- # define ANIMAL_HPP
- # include <iostream>
- # include <string>
- class Animal
- {
- public:
- Animal();
- Animal( Animal const & src );
- Animal( std::string const & type );
- virtual ~Animal();
- Animal & operator=( Animal const & rhs );
- virtual void makeSound(void) const;
- std::string getType(void) const;
- protected:
- std::string type;
- };
- std::ostream & operator<<( std::ostream & o, Animal const & i );
- #endif /* ********************************************************** ANIMAL_H */
|