Listing 21 A well-behaved version of Listing 19

// person3.h
#include "date5.h"
#include "bool.h"

class ostream;

class Person
{
   friend ostream & operator<<(ostream &, const Person &);

public:
   Person();
   Person(const char *,const char *,const Date &,const char *);
   Person(const Person &);             // NEW
   ~Person();
   Person& operator=(const Person &);  // NEW
   bool operator==(const Person &) const;

private:
   char * last;
   char * first;
   Date birth;
   char * ssn;
};

/* End of File */