feat: adding the ex02
This commit is contained in:
parent
921b3951d9
commit
e78b8fbe33
14 changed files with 539 additions and 0 deletions
31
cpp04/ex02/Cat.hpp
Normal file
31
cpp04/ex02/Cat.hpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Cat.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/28 17:44:48 by rparodi #+# #+# */
|
||||
/* Updated: 2025/02/10 12:20:07 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef CAT_HPP
|
||||
#define CAT_HPP
|
||||
|
||||
#include "Animal.hpp"
|
||||
#include "Brain.hpp"
|
||||
#include <string>
|
||||
|
||||
class Cat : public Animal {
|
||||
public:
|
||||
Cat();
|
||||
~Cat();
|
||||
virtual void makeSound() const;
|
||||
protected:
|
||||
|
||||
private:
|
||||
Brain *brain;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue