Listing 16 Defines a Person data type

// person.h
#include <cstring.h>
#include "date5.h"
#include "bool.h"

class ostream;

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

public:
   Person(const string& = "", const string& = "",
         const Date& = Date(0,0,0), const string& = "");
   bool operator==(const Person &) const;

private:
   string last;         // 3 string subobjects
   string first;
   Date birth;          // Date subobject
   string ssn;
};
/* End of File */