Define the term object reference.


Teaching Note:

As typified by simple classes that are self-referential.


Sample Question:


JSR Notes:

There are two things here.

First there's the same old same old concept of an object actually being, at its core a reference.


Student s = new Student("Jane", 10);

makes a "reference" variable, which is actually the address of where the Student object resides.


****** 2014 needed ******** But then there is "self-referential".

This is the kind of class which has (what is generally, operationally) a pointer to another instance of the same class. In this way, this kind of class can link up instances of itself, as in linked list.

So in a linked list, a Node instance "references" another Node instance. So Node is a self-referential class.