Suppose you enhance the Person class in Figure 7.7 by adding another instance variable, jobDescription, and another

Question:

Suppose you enhance the Person class in Figure 7.7 by adding another instance variable, jobDescription, and another method, switchJobs. Complete the following additional switchJobs method that swaps the calling object’s jobDescription with the passed-in parameter object’s jobDescription.

public void switchJobs (Person other Person) ( // end switchJobs

Figure 7.7

/****** *Person.java * Dean & Dean * * This stores, retrieves, and swaps a person's name. public class Person

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: