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

10. (C) Segment I will only be true if an object and its parameter are the same reference, which is not necessarily true for two matching tiles. Segment II fails similarly if the Tile class doesn’t have its own equals method. (The inherited method from Object compares references.)


































































































   1179   1180   1181   1182   1183