#include <dog.h>
Inheritance diagram for Dog:
Public Member Functions | |
Dog () | |
Dog (string name, char gender, string cid, double weight) | |
void | setCountyID (string cid) |
void | setWeight (double weight) |
string | getCountyID () const |
double | getWeight () const |
virtual void | read (ifstream &fin) |
virtual void | print (ostream &out=cout) const |
virtual | ~Dog () |
Protected Attributes | |
string | cid |
double | weight |
|
Default class constructor. |
|
Explicit class constructor initializing this dog object using the arguments name, gender, County ID (cid), and weight
|
|
Destructor. Does nothing but is recommended for classes with virtual methods. |
|
Returns this dog's County ID (cid).
|
|
Returns this dog's weight.
|
|
Prints this dog's name, gender, County ID (cid), and weight to the ostream out, which defaults to cout.
Reimplemented from Animal. Reimplemented in GuideDog. |
|
Reads this dog's name, gender, County ID (cid), and weight from the ifstream argument
Reimplemented from Animal. Reimplemented in GuideDog. |
|
Sets this dog's County ID (cid)
|
|
Sets this dog's weight
|