Not a complete class definition
The code fragment in Listing 2 is not a complete class definition.
More functions are probably required to define the behavior of an object of the Date class,
Also, only the prototypes are shown for the constructor and the overloaded operator function.