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

27. (D) Code segment III is wrong because the equals method is defined for objects only. Since getValue returns a double, the quant it ies c.getValue() and aCoin.getValue() m us t be compared either using ==, or as described in the box (better).


































































































   1024   1025   1026   1027   1028