#include #include "Mammal.hh" namespace zoo { Mammal::~Mammal() = default; void Mammal::setExhibit(std::string _exhibit) { this->exhibit = std::move(_exhibit); } void Mammal::setName(std::string _name) { this->name = std::move(_name); } void Mammal::setCageSizeMin(int _cageSizeMin) { if (Mammal::validateCageSizeMin(_cageSizeMin)) { this->cageSizeMin = _cageSizeMin; } } std::string Mammal::getExhibit() { return this->exhibit; } std::string Mammal::getName() { return this->name; } int Mammal::getCageSizeMin() const { return this->cageSizeMin; } bool Mammal::validateCageSizeMin(int cageSize) { if (cageSize < 2 || cageSize > 100000) { return false; } else { return true; } } } // namespace zoo