1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
using namespace std;
class Bunnie
{
public:
enum Sex {male, female};
enum Color {white, brown, black, spotted};
enum BunnieNames {Oreo, Baby, Daisy, Thumper, Lily, Snowball, Peanut, Nibbles, Smokey, Isabelle};
Bunnie();
virtual ~Bunnie();
unsigned short getAge();
void setAge(unsigned short age);
friend ostream& operator<<(ostream& os, const Bunnie& dt);
protected:
private:
Sex sex;
Color color;
unsigned short age;
BunnieNames name;
bool radioactive_mutant_vampire_bunny;
};
|