created 6/15/98; revised 09/05/99, 06/12/00, 05/04/02
In previous chapters,
methods were called with parameters
that were primitive data types.
For example, in the following the parameters of move()
are int
:
Point pt = new Point(); pt.move( 14, 22 );
This chapter discusses how to use object references
as parameters.
The class String
is used in many examples.