2020-05-24 17:04:37 +02:00
|
|
|
#include "cat.h"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
void cat::make_sound() {
|
2020-05-24 17:39:59 +02:00
|
|
|
// call the base class function first
|
2020-05-24 17:04:37 +02:00
|
|
|
animal::make_sound();
|
2020-05-24 17:39:59 +02:00
|
|
|
|
|
|
|
// add additional functionality
|
2020-05-24 17:04:37 +02:00
|
|
|
cout << "meow" << endl;
|
|
|
|
}
|