-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTicket.java
28 lines (25 loc) · 817 Bytes
/
Ticket.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.time.LocalDate;
public class Ticket {
String passenger_name;
String from;
String to;
LocalDate date;
String departure_time;
String arrival_time;
String class_type;
String flightNo;
Users [] additional_users;
FlightDetails flight;
Ticket(String name,String from,String to,LocalDate d,String departure_time,String arrival_time,String class_type,String flightNo, FlightDetails flight, Users[] additional_users){
this.passenger_name = name;
this.from = from;
this.to = to;
this.date = d;
this.departure_time = departure_time;
this.arrival_time = arrival_time;
this.class_type = class_type;
this.flightNo = flightNo;
this.flight = flight;
this.additional_users = additional_users;
}
}