Suppose that we add the following method to the class SalesReporter in Listing 7.4 so that a program using this class can access the sales associates: /** Returns an array of SalesAssociate objects....



Suppose that we add the following method to the class SalesReporter


in Listing 7.4 so that a program using this class can access the sales


associates:


/** Returns an array of SalesAssociate objects. */


public SalesAssociate[] getSalesTeam()


{



return team;


}


Will this method compile and execute as indicated? Is adding this method


to the class SalesReporter a good idea?



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here