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:

Verified
Correct Answer:
Verified
Q10: Which of the following is one of
Q49: General Java variable naming conventions would suggest
Q60: Which of the following classes has a
Q65: Why can't Java methods change parameters of
Q75: Consider the partial Date class below which
Q77: Which of the following statements describes the
Q78: Pre- and postconditions may be viewed as
Q79: Consider the method signature in the following
Q81: Consider the partial Date class below which
Q85: Which statement will import the static methods