17 lines
313 B
C
Raw Normal View History

2020-05-24 17:04:37 +02:00
#pragma once
#include <string>
2020-05-24 17:39:59 +02:00
// include the animal header
2020-05-24 17:04:37 +02:00
#include "animal.h"
using namespace std;
2020-05-24 19:17:19 +02:00
// make the class inherit from animal
2020-05-24 17:04:37 +02:00
class cat: public animal
{
2020-05-24 17:39:59 +02:00
// include the animal constructor
2020-05-24 17:04:37 +02:00
using animal::animal;
public:
2020-05-24 17:39:59 +02:00
// override the make_sound function
2020-05-24 17:04:37 +02:00
void make_sound() override;
};