/****************************************************************
example 4 -- driver.cpp
    test program for class animal
****************************************************************/

#include "animal.h"

void main() {
    animal dog("Woof!");
    cout << "The dog goes " << dog << endl;

    dog.setSound("Grrrrr....");
    cout << "When the dog is mad, it goes " << dog << endl;

    animal rooster;
    cout << "The rooster goes " << rooster << " unless it's sunrise." << endl;

    rooster.setSound() = "Cock-a-doodle-doo!!!";
    cout << "At sunrise, the rooster says " << rooster << endl;
}