Parts of a Program
These are the parts of a program, as shown in theHelp screen:
The unit heading specifies the unit's name, which is used when referring to the unit in a uses clause.
Thedeclares the symbols that are public (available to the users of the unit). Procedures and functions are listed only as headings in the interface part.
Thedefines the "body" of all public procedures and functions. In addition, it declares private symbols that aren't available to the users of the unit.
The initialization part is the last part of a unit. It consists of either
the reserved word "end" (no initialization code)
a statement part to be executed in order to initialize the unit