update: rm -rf to restart from scratch
This commit is contained in:
parent
42e83d8e62
commit
5e999def3a
45 changed files with 813 additions and 366 deletions
|
|
@ -5,8 +5,8 @@
|
|||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/28 17:44:54 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/31 19:23:05 by rparodi ### ########.fr */
|
||||
/* Created: 2025/02/18 16:21:56 by rparodi #+# #+# */
|
||||
/* Updated: 2025/02/18 20:03:00 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -14,17 +14,20 @@
|
|||
#define ANIMAL_HPP
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
class Animal {
|
||||
public:
|
||||
Animal();
|
||||
virtual ~Animal();
|
||||
Animal(Animal const & copy);
|
||||
Animal & operator=(Animal const & assign);
|
||||
virtual void makeSound() const;
|
||||
std::string getType() const;
|
||||
virtual Animal* clone() const = 0;
|
||||
virtual std::string getIdea(int const index) const = 0;
|
||||
virtual void setIdea(int const index, std::string const idea) const = 0;
|
||||
|
||||
protected:
|
||||
std::string type;
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue