Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. (15 points) Consider the following class definition (10 points) Modify the code below to setupproperties for cast-name and event class definition in the box

image text in transcribed
5. (15 points) Consider the following class definition (10 points) Modify the code below to setupproperties for cast-name and event class definition in the box on the right to include the required properties. You don't rewrite unchanged code, but indicate new or modified code using arrows from the right to left box to indicate where the new code is inserted and cross out replaced or deleted code on the one of the methods discussed in class a, Add code to the class Ticket (object) Enter code with properties defined here ticketCount - 0 def init (self, name, event): Ticket.ticketCount + 1 self serialNumber Ticket.ticketCount self .cust name name self_ event event def getSerial(sel) return self._serialNumber def getcust name(self return self...cust name def setcust name(self, name): self.-cust-name, name def getevent (self): return self. event def setevent(self, event): self_event event (5 points) Add code to instantiate a Ticket object called t1. Use whatever values you want for name and event. Then add code to retrieve the cust name using its property. After that, add code to reset the value of event, using its property, to a value that's different than what it currently is. b

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

(12) What gaps are there in the current approach to development?

Answered: 1 week ago