You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create 2 Java classes -“Ticket” and “TicketService”
The “Ticket" class should have the following variables:
ID (max 4 digits and/or chars)
concert hall (max 10 chars)
event code (3 digits)
time (Unix timestamp)
is promo
stadium sector (from ‘A’ to ‘C’)
max allowed backpack weight in kg (with grams precision)
<
Choose the [name] [data type], [access modifier] and [variable type] carefully, depending on a [variable] purpose.
There should be the ability to create a Ticket instance with all parameters initialised and also a limited one - [concert hall], [event code] and
[time].