#ifndef GOLFER_H #define GOLFER_H #include #include using namespace std; class Golfer { private: string name; string eMail; int handicap; static const int MAX_HANDICAP = 99; public: Golfer(); Golfer(string name); Golfer(string name, string eMail, int handicap); string getName() const { return name; } void setName(string n) { name = n; }; string getEMail() const; void setEMail(string address); int getHandicap() const; void setHandicap(int h); void swap(Golfer &p); bool operator >(Golfer const &rhs); bool operator ==(Golfer const &rhs); ~Golfer(); }; ostream& operator << (ostream& out, const Golfer &g); #endif