
352 9 Chapter ! 7: Applications
an array of DiaryEntry objects. As you will see in Chapter 18,
this structure requires that the entire data structure be initial-
ized when a new empty document is opened: A DiaryData
object with an array of one DiaryEntry is created.
A Walk-Through of the Diary Classes
DiaryDocument
In both Java and Objective-C, there are three primary classes
in Diary. They are described throughout this part of the book,
but this walk-through shows you what they are and what
their primary methods are.
The classes are:
1. DiaryDocument--the document
0
DiaryData--the contents of the diary as a whole, in-
cluding