17 lines
313 B
C++
17 lines
313 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
// include the animal header
|
|
#include "animal.h"
|
|
using namespace std;
|
|
|
|
// make the class inherit from animal
|
|
class dog: public animal
|
|
{
|
|
// include the animal constructor
|
|
using animal::animal;
|
|
public:
|
|
// override the make_sound function
|
|
void make_sound() override;
|
|
};
|