INTERFACE defines interfaces or defers them.
The definition of an interface consists of a declaration
section that starts with
INTERFACEand is ended using
ENDINTERFACE. Unlike classes, an interface does not have an implementation part.
Additional variants of
ENDINTERFACEare used for deferring interfaces in a program.
INTERFACE and associated statements
can be specified only in the global context of a program.
ENDINTERFACE cannot be specified within classes, procedures, and processing blocks implemented
internally as a procedure (namely event blocks for
. This applies in particular to the variant of
INTERFACE specified here, which is not closed using
The definition or deferral of an interface is handled like other declaration statements
TYPE, ...). In a processing block without a local context, they are handled like global program declarations and do not end the processing block.
Previously, an obsolete variant
INTERFACE ... LOADwas used to load interfaces explicitly.