feat: adding the ex02

This commit is contained in:
Raphael 2025-02-15 19:22:12 +01:00
parent 921b3951d9
commit e78b8fbe33
14 changed files with 539 additions and 0 deletions

32
cpp04/ex02/Dog.hpp Normal file
View file

@ -0,0 +1,32 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Dog.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/28 17:44:51 by rparodi #+# #+# */
/* Updated: 2025/02/07 17:51:39 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef DOG_HPP
#define DOG_HPP
#include "Animal.hpp"
#include "Brain.hpp"
#include <string>
class Dog : public Animal {
public:
Dog();
~Dog();
virtual void makeSound() const;
protected:
private:
Brain *brain;
};
#endif