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

14. (C) To access the price for each Ticket in the tickList array, the getPrice() accessor in the Ticket class must be used, since price is private to that class. This eliminates choices A and E. Choice B uses the array name incorrectly. Choices D and E incorrectly declare a Transaction object. (The method applies to an existing Transaction object.)


































































































   998   999   1000   1001   1002