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:

Verified
Correct Answer:
Verified
Q14: How would you create the class PackageSample
Q15: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q16: The best way to learn the strategy
Q17: Why does the Scanner class belong to
Q18: Which of the following types of methods
Q20: A theater needs a TicketCounter to keep
Q21: Consider the partial Date class below (method
Q22: Which class category has static methods and
Q23: Which type of method modifies the object
Q24: Which of the following is an example