00001
00002 #ifndef DOG_H
00003 #define DOG_H
00004
00005 #include <iostream>
00006 #include <fstream>
00007 #include <string>
00008 #include "animal.h"
00009
00010 using namespace std;
00011
00022 class Dog : public Animal
00023 {
00024 public:
00025 Dog();
00026 Dog(string name, char gender, string cid, double weight);
00027 void setCountyID(string cid);
00028 void setWeight(double weight);
00029 string getCountyID() const;
00030 double getWeight() const;
00031 virtual void read(ifstream &fin);
00032 virtual void print(ostream &out = cout) const;
00033 virtual ~Dog();
00034
00035 protected:
00036 string cid;
00037 double weight;
00038
00039 };
00040
00041 #endif // DOG_H
00042