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.
 
 

26 lines
1.1 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Cat.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/24 09:02:47 by narnaud #+# #+# */
/* Updated: 2022/06/24 12:10:57 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
#include "Cat.hpp"
Cat::Cat (void):AAnimal("Cat") {
_brain = new Brain();
cout << "Cat default constructor called" << endl;
}
Cat::~Cat (void) {
delete _brain;
cout << "Cat default destructor called" << endl;
}
void Cat::makeSound(void) const {
cout << "Miaou" << endl;
}