revised 10/09/98; 09/04/99; 01/20/00
An object contains both variables and methods. Often when you use a method, you need to give it some information which says what you want to happen. For example:
Point pt = new Point(); pt.move( 14, 22 ); // move pt to x=14, y=22
The move()
method
must be used with two parameters that give the x and y value
of the new location.