/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Cat.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos type = "Cat"; } Cat::~Cat() { std::cout << "Cat has been destroyed" << std::endl; } Cat::Cat(const Cat &other) : Animal(other) { std::cout << "Cat copied" << std::endl; *this = other; } Cat& Cat::operator=(const Cat &other) { std::cout << "Cat copy assignment called" << std::endl; if (this != &other) this->type = other.type; return (*this); } void Cat::makeSound() const { std::cout << "Meow!" << std::endl; }