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

13. (D) Segment I works because p is a reference to the element pixels[row][col]. Changing p with a mutator method will change the array. Segment II changes the two-dimensional array directly. Segment III is garbage: you cannot assign a value through an accessor method.


































































































   1185   1186   1187   1188   1189