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
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.

Figure 7.7

public void switchJobs (Person other Person) ( // end switchJobs
Step by Step Solution
3.41 Rating (148 Votes )
There are 3 Steps involved in it
To complete the switchJobs method in a way that swaps the jobDescription of the calling object this ... View full answer
Get step-by-step solutions from verified subject matter experts
