14 lines
235 B
C++
14 lines
235 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
class animal
|
|
{
|
|
public:
|
|
std::string name;
|
|
// define make_sound as virtual to allow overriding in subclasses
|
|
virtual void make_sound();
|
|
animal(std::string name);
|
|
};
|