1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define NAME_LEN 20
class _animal {
protected:
char name[NAME_LEN];
public:
_animal(const char *name);
virtual void show();
};
class _tori : public _animal {
public:
_tori(const char *name);
void show();
};
class _inu : public _animal {
public:
_inu(const char *name);
void show();
};