There are many ways:
By nulling a reference:
By assigning a reference to another:
By anonymous object: