(a) write the gethighestyield method, which returns the plot object with the highest yield among the plots in farmplots with the crop type specified by the parameter c. if more than one plot has the highest yield, any of these plots may be returned. if no plot exists containing the specified type of crop, the method returns null.

Q&A Education