24. (E) Note that p is declared to be of type Employee, and the Employee class does not have a getPayFraction method. To avoid the error, p must be cast to PartTimeEmployee as follows: double g = ((PartTimeEmployee) p).getPayFraction();