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.
44 lines
1.5 KiB
44 lines
1.5 KiB
3 years ago
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* AAnimal.cpp :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* 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;
|
||
|
}
|