| revised 10/09/98; 09/04/99; 01/20/00 |
CHAPTER 28 ---Parameters in Method CallsAn object contains both variables and methods. Often when you use a method, you need to give it some information which says exactly what you want to happen. For example: The move method must be used with two parameters that give the x and the y value of the new location of the point.Point pt = new Point(); pt.move( 14, 22 ); // move pt to x=14, y=22 Chapter Topics:
|
QUESTION 1:After the following statements have executed,
what value is in the
variable len?
Click Here after you have answered the question
|