For the class definition below, what could be done to allow…
For the class definition below, what could be done to allow the attribute “__venue” to be directly accessed (“read” access) using dot-notation and the name “venue”? For example, the code to print the venue for Ticket object t1 would be ‘print(t1.venue)’. Check all of the following code choices that would provide a complete solution when added to the Ticket class. class Ticket (object): ticketCount = 0 def __init__(self, name, event, date, venue): Ticket.ticketCount += 1 self.__serialNumber = Ticket.ticketCount self.cust_name = name self.date = date self.__event = event self.__venue = venue
Read Details