Question: For drjava please Attached files Attached FilesTicket Test java (1.642 KB) Seat and Ticket equals code txt (997 B) Write two java classes for this
Attached files
Attached FilesTicket Test java (1.642 KB) Seat and Ticket equals code txt (997 B) Write two java classes for this assignment per the two uml diagrams below. The TicketTest program has been added to this assignment for instantiating and testing out both the Ticket and Seat classes Download the Tickettest and place t in the same directory as your Ticket and Seat classes. First compile all three classes, if there are compie errors though your Ticket and Seat classes compile that means your Ticket and eat classes do not meet the requrements specified n t e to owng uml tagams all three classes do comple run Ticket est The output you should see is prov ded below Do notice that the Ticket class contains a feld(variable) for a Seat object, this is called an aggregation of objects. Also take note that the toString() and equals0 methods are required for both classes Seat String location String aisle String event Double ticketPrice Seat seat Date dateOfEvent eatNumber Constructors) String getEvent) void setEvent(String pEvent) Double getTicketPrice) void setTicketPrice (Double pPrice) Seat getSeat() void setSeat(Seat pSeat) Date getDateOfEvent) void setDateOfEvent (Date pDate) String toString() Boolean equals(Object obj) Constructorls) String getLocation0) void setLocation(String pLoc) String getAislel) void setAisle(String pAisle) int getSeatNumber() void setSeatNumber(int pNbr) String toString) Boolean equals(Object objl) First Ticket TickotEvent Hedwig and The Angry Inch Ticket Price: 58 25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
