Solved

A Theater Needs a TicketCounter to Keep Track of the Number

Question 76

Multiple Choice

A theater needs a TicketCounter to keep track of the number of tickets sold. There are two types of ticket: regular and discount. What instance data should be used for this class?


A) String[] ticketsSold; // Each entry is either "regular" or "discount"
B) int regularTicketsSold; int discountTicketsSold;
C) ArrayList<String> ticketsSold; // Each entry is either "regular" or "discount"
D) double ticketsSold; // Add 1 for regular and 0.5 for discount tickets

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions