CLASS - LOCAL FRIENDS
CLASS class DEFINITION
LOCAL FRIENDS class1 class2 ...
intf1 intf2 ...
This statement does not introduce a declaration part. It must not be ended with an
- Declaring local classes of a class pool as friends of the global class is necessary, in particular, for local test classes that test the private components of the global class.
This variant of the statement
CLASScan also only be listed in the context described under
If the local classes and interfaces
class1 class2 ...and intf1 intf2 ... are to be able to access all components of the global class
classin their declaration part, the statement must first be specified in the class pool. Here, the local classes and interfaces must first be registered using CLASS - or
INTERFACE - DEFERRED.