#include "monkey.h" using namespace std; Monkey::Monkey() : Animal() { cout << "Monkey()" << endl; //Animal("monkey"); this->tail_len = 1.2; this->age = 5; this->name = "monkey"; } Monkey::~Monkey() { cout << "~Monkey()" << endl; } void Monkey::make_noise(int num) { for (int i = 0; i < num; i++) cout << "Monkey noise" << endl; } void Monkey::print() { //Animal::print(); cout << "==============" << endl; cout << "Name: " << this->name << endl; cout << "Age: " << this->age << endl; cout << "Tail length: " << this->tail_len << endl; cout << "==============" << endl; }