CLASS - LOCAL FRIENDS

Syntax

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


Effect:

This statement makes the local classes and interfaces class1 class2 ... and intf1 intf2 ... of a class pool friends of its global class class. At least one class or interface must be specified.

This statement introduces a declaration part. It must not be ended with an ENDCLASS statement. It must be listed in the class pool before the definition of the local classes and interfaces class1 class2 ... and intf1 intf2 ... if these are to have access to the private and protected components of the global class class.