You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
1.6 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* WrongAnimal.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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;
}