References

The file Person.java defines a simple class that represents a person (a person has a name and an age). The file References1.java contains a program that instantiates three Person objects and then makes some modifications to the objects and their references.

The file References2.java contains another program involving Person objects. This one illustrates the difference between assignments involving objects and assignments involving primitive values.

Go back to lab2 index page