/********************************************************************* C201 Computer Programming II Fall 2006 Dana Vrajitoru & Implementation of the class Animal. **********************************************************************/ #include "animal.h" #include using namespace std; // Constructor Animal::Animal() : Lifeform("animal"), nr_of_legs(4), has_vision(true) { is_mobile = true; } // Destructor for show and tell Animal::~Animal() { cout << "Destroying the animal." << endl; } // Returns the value of can_see bool Animal::Can_see() { return has_vision; } // Prints a message about how the animal walks void Animal::Walk() { cout << name << " walks on " << nr_of_legs << " legs." << endl; }