00001 #ifndef DOG_H
00002 #define DOG_H
00003
00004 #include <iostream>
00005 #include <stdexcept>
00006 #include <fstream>
00007 #include <string>
00008 #include "pet.h"
00009
00010 using namespace std;
00011
00020 class Dog : public Pet
00021 {
00022 public:
00023 Dog();
00024 Dog( string name, double age ) throw ( out_of_range );
00025 double getDogYears() const;
00026 virtual void print( ostream &out = cout ) const;
00027 virtual void read( istream &in ) throw ( out_of_range );
00028
00029 };
00030
00031 #endif // DOG_H
00032