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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Cat.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/24 09:02:47 by narnaud #+# #+# */
/* Updated: 2022/06/24 11:47:13 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
#include "Cat.hpp"
Cat::Cat (void):Animal("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;
}