Solved

A Theater Needs a TicketCounter to Keep Track of the Number

Question 19

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.Which technique would be the best approach to printing the number of tickets sold?


A) Create a toString() method in the class that creates a representation with the number of discount and regular priced tickets sold.
B) Create a print() method that will print out the number of discount and regular priced tickets sold.
C) Make the instance variables public so programs can access the values and print them.
D) Create a getValues(int regular, int discount) method that will return the number of discount and regular priced tickets sold.

Correct Answer:

verifed

Verified

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

Related Questions