Parameter Passing

The file ChangingPeople.java contains a program that illustrates parameter passing. The program uses Person objects defined in the file Person.java. Do the following:

  1. Trace the execution of the program using diagrams similar to those we drew in class. Also show what is printed by the program.

  2. Compile and run the program to see if your trace was correct.

  3. Modify the changePeople method so that it does what the documentation says it does; that is, the two Person objects passed in as actual parameters are actually changed.