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
33
cpp04/ex02/AAnimal.hpp
Normal file
33
cpp04/ex02/AAnimal.hpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* AAnimal.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/18 16:21:56 by rparodi #+# #+# */
|
||||
/* Updated: 2025/02/18 20:14:43 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef AAnimal_HPP
|
||||
#define AAnimal_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
class AAnimal {
|
||||
public:
|
||||
AAnimal();
|
||||
virtual ~AAnimal();
|
||||
AAnimal(AAnimal const & copy);
|
||||
AAnimal & operator=(AAnimal const & assign);
|
||||
virtual void makeSound() const = 0;
|
||||
virtual AAnimal* 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;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue