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