Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə22/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   18   19   20   21   22   23   24   25   ...   294
DelphiLanguageGuide

Unit Structure and Syntax
A unit consists of types (including classes), constants, variables, and routines (functions and procedures). Each unit
is defined in its own source (.pas) file.
A unit file begins with a unit heading, which is followed by the interface keyword. Following the interface keyword,
the uses clause specifies a list of unit dependencies. Next comes the implementation section, followed by the optional
initialization, and finalization sections. A skeleton unit source file looks like this:
unit Unit1;
interface
uses // List of unit dependencies goes here...
14


implementation
uses // List of unit dependencies goes here...
// Implementation of class methods, procedures, and functions goes here...
initialization
// Unit initialization code goes here...
finalization
// Unit finalization code goes here...
end.
The unit must conclude with the reserved word end followed by a period.

Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   18   19   20   21   22   23   24   25   ...   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin