d04 ex02 ok, presque rien a changer ou je me trompe ?

This commit is contained in:
hugogogo
2022-02-26 22:12:55 +01:00
parent ed2bbc7fd2
commit c056db80b7
27 changed files with 597 additions and 68 deletions

34
d04/ex01/headers/Cat.hpp Normal file
View File

@@ -0,0 +1,34 @@
#ifndef CAT_HPP
# define CAT_HPP
# include "color.h"
# include <iostream>
# include <string>
# include "Animal.hpp"
# include "Brain.hpp"
class Cat : public Animal {
public:
Cat();
Cat( Brain *brain );
// Cat( Brain *brain = new Brain() );
Cat( Cat const & src );
~Cat();
Cat & operator=( Cat const & rhs );
void makeSound() const;
void printBrain() const;
void printBrain(int pos) const;
private:
Brain *_brain;
};
#endif