feat: finishing the ex00 of the module 04
This commit is contained in:
parent
1c1e515ceb
commit
cbb34cf2e0
13 changed files with 181 additions and 36 deletions
30
cpp04/ex00/WrongAnimal.hpp
Normal file
30
cpp04/ex00/WrongAnimal.hpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* WrongAnimal.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/28 17:44:54 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/31 19:34:06 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef WRONGANIMAL_HPP
|
||||
#define WRONGANIMAL_HPP
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
class WrongAnimal {
|
||||
public:
|
||||
WrongAnimal();
|
||||
virtual ~WrongAnimal();
|
||||
virtual void makeSound() const;
|
||||
std::string getType() const;
|
||||
protected:
|
||||
std::string type;
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue