CLASS

Syntax Forms


Declaration Part of a Class

1. CLASS class DEFINITION  [class_options].
    [PUBLIC SECTION.
      [components]]
    [PROTECTED SECTION.
      [components]]
    [PRIVATE SECTION.
      [components]]
  ENDCLASS.

Implementation Part of a Class

2. CLASS class IMPLEMENTATION.
    ...
    METHOD ...
      ...
    ENDMETHOD.
    ...
  ENDCLASS.

Publication of Classes

3. CLASS class DEFINITION { {DEFERRED [PUBLIC]} | LOAD }.

Lokale Freunde globaler Klassen

4. CLASS class DEFINITION
              LOCAL FRIENDS class1 class2 ...
                            intf1  intf2  ... .


Effect

The statement CLASS defines a class class, publishes it, or specifies properties.

The complete definition of a class consists of a declaration part and an implementation part, which are both introduced by CLASS. In the declaration part, the properties of the class are specified and its components are declared. In the implementation part, the methods of the class are implemented.

Further variants of CLASS are used for the publication of classes in a program and the declaration of local friends of a global class.