PrepAway - Latest Free Exam Questions & Answers

What would be the BEST abstract superclass which defines the operations getPrice(), getSeats() and getCustomer

Refer to the exhibit to answer the question.

Besides individual tickets for sale, there are also group packages and season tickets. Each of
these has a different price. Each has its own rules for determining its price.
– A GroupTicketPackage is a set of tickets for an individual performance.
– A SeasonTicket is a ticket for the same seat for a number of performances.
– A SeasonTicketPackage is a set of tickets for the same seats for a given number of
performances.
What would be the BEST abstract superclass which defines the operations getPrice(), getSeats()
and getCustomer() and which all these new classes could be subtypes of?

PrepAway - Latest Free Exam Questions & Answers

A.
SeasonTicket

B.
TicketPackage

C.
Ticket

D.
TicketOffering


Leave a Reply