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