2020-05-24 17:04:37 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class animal
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string name;
|
2020-05-24 17:39:59 +02:00
|
|
|
// define make_sound as virtual to allow overriding in subclasses
|
2020-05-24 17:04:37 +02:00
|
|
|
virtual void make_sound();
|
|
|
|
animal(std::string name);
|
|
|
|
};
|