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