Skip to content


A reference is an abstraction that refers to an object stored elsewhere in memory, by storing a pointer to the memory address where the remote object is stored.

This abstraction is extremely useful. For example, it allows for the construction of data structures like linked lists , where elements can be sequentially linked regardless of their physical location in memory:

A linked list demonstrating the use of the reference abstraction