20 lines
280 B
C++
20 lines
280 B
C++
#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
|