Example

 

The CLEAR statement resets the reference in CREF2 to its initial value. The reference variable CREF2 then contains the same value as it did immediately after its declaration, and does not point to an object any more.