33 lines
412 B
C++
33 lines
412 B
C++
#ifndef CAT_HPP
|
|
# define CAT_HPP
|
|
|
|
# include "color.h"
|
|
# include <iostream>
|
|
# include <string>
|
|
|
|
# include "Animal.hpp"
|
|
# include "Brain.hpp"
|
|
|
|
class Cat : public Animal {
|
|
|
|
public:
|
|
|
|
Cat( Brain *brain = new Brain() );
|
|
Cat( Cat const & src );
|
|
~Cat();
|
|
Cat & operator=( Cat const & rhs );
|
|
|
|
void makeSound() const;
|
|
|
|
void printBrain() const;
|
|
void printBrain(int pos) const;
|
|
|
|
private:
|
|
|
|
Brain *_brain;
|
|
|
|
};
|
|
|
|
#endif
|
|
|