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.
 
 

43 lines
1.5 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Animal.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/24 09:02:11 by narnaud #+# #+# */
/* Updated: 2022/07/19 12:42:41 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 << "Strange noise" << endl;
}