Lecture 7
16
How parameters really work
•Box.java line 143 sends a message:   box2.paintOn( screen, 2, 2 ); 
•Execution shifts to method at Box.java line 52:                  public void paintOn(               Screen s, int x, int y)
•Value of parameter
– s in method is value of screen in message
–x in method is  (first) 2 in message
–y in method is (second) 2 in message