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