Solved

A Theater Needs a TicketCounter to Keep Track of the Number

Question 77

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents