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.

27 lines
1.1 KiB

3 years ago
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Dog.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/24 09:02:36 by narnaud #+# #+# */
/* Updated: 2022/06/24 11:47:22 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
#include "Dog.hpp"
Dog::Dog (void):Animal("Dog") {
_brain = new Brain();
cout << "Dog default constructor called" << endl;
}
Dog::~Dog (void) {
delete _brain;
cout << "Dog default destructor called" << endl;
}
void Dog::makeSound(void) const {
cout << "Waouf" << endl;
}