Example

 

The DATA statement creates a class reference variable CREF1 with type C_COUNTER. This variable can contain references to all instances of the class C_COUNTER. The class C_COUNTER must be known to the program when the DATA statement occurs. You can either declare it locally before the data statement in the same program, or globally using the Class Builder. The contents of CREF1 are initial. The reference does not point to an instance.