Example

 

Here, three class reference variables are declared for the class C_COUNTER, and two objects are created for the class. The references in the reference variables CREF1 and CREF2 each point to one of these objects. The reference in CREF3 is initial.