Main Page   Class Hierarchy   Compound List   File List   Compound Members  

animal.h

00001 
00002 #ifndef ANIMAL_H
00003 #define ANIMAL_H
00004 
00005 #include <iostream>
00006 #include <fstream>
00007 #include <string>
00008 
00009 using namespace std;
00010 
00019 class Animal
00020 {
00021   public:
00022     Animal();
00023     Animal(string name, char gender);
00024     void setName(string name);
00025     void setGender(char gender);
00026     string getName() const;
00027     char getGender() const;
00028     virtual void print(ostream &out = cout) const;
00029     virtual void read(ifstream &fin);
00030     virtual ~Animal();
00031 
00032   protected:
00033     string name;
00034     char gender;
00035 
00036 }; // Animal class
00037 
00038 #endif // ANIMAL_H
00039 

Generated on Thu Feb 10 16:33:09 2005 by doxygen1.3