Page 1330 - AP Computer Science A, 7th edition
P. 1330

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();

































































































   1328   1329   1330   1331   1332