/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Animal.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/24 09:02:11 by narnaud #+# #+# */ /* Updated: 2022/06/24 11:22:10 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "Animal.hpp" Animal::Animal (void) { cout << "Animal default constructor called " << endl; } Animal::Animal (string type):_type(type) { cout << "Animal parameter constructor called" << endl; } Animal::Animal (Animal const & src) { (void)src; cout << "Animal copy constructor called" << endl; } Animal & Animal::operator= (Animal const & src) { (void)src; cout << "Animal assignment operator called" << endl; return (*this); } Animal::~Animal (void) { cout << "Animal default destructor called" << endl; } string Animal::getType(void) const { return (_type); } void Animal::makeSound(void) const { cout << "..." << endl; }