/****************************************************************
animal.cpp
    class animal member function implementations
****************************************************************/
#include "animal.h"

animal::animal() {
    sound = "<<silence>>";
}

animal::animal(const string& s) {
    sound = s;
}

void animal::talk(){
    cout << sound;
}

void animal::setSound(const string& s) {
    sound = s;
}