in animal.hpp // Getters std::string getType() const; should be like: in brain.hpp // Getters const std::string& getIdea() const;
in animal.hpp
// Getters
std::string getType() const;
should be like: in brain.hpp
// Getters
const std::string& getIdea() const;