ex00: it works!
This commit is contained in:
commit
6d4b5788d7
16 changed files with 318 additions and 0 deletions
20
ex00/Animal.hpp
Normal file
20
ex00/Animal.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef ANIMAL_HPP
|
||||
#define ANIMAL_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
class Animal {
|
||||
public:
|
||||
Animal();
|
||||
Animal(const Animal &other);
|
||||
~Animal();
|
||||
Animal &operator=(const Animal &other);
|
||||
|
||||
std::string getType() const;
|
||||
void makeSound() const;
|
||||
|
||||
protected:
|
||||
std::string type;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue