Flight.java (556B)
1 public class Flight { 2 public Seat[] Seats; 3 4 public String StartingPoint; 5 6 public String Destination; 7 8 public String Date_; 9 10 public String ID; 11 12 public Flight(Seat[] Seats_, String start, String dest, String D, String ID_) 13 { 14 Seats = Seats_; 15 StartingPoint = start; 16 Destination = dest; 17 Date_ = D; 18 ID = ID_; 19 } 20 21 public String toString() 22 { 23 return "Flight starting point : " + StartingPoint + "\n" 24 + "Flight destination : " + Destination + "\n" 25 + "Flight Date : " + Date_ + "\n" 26 + "Flight ID : " + ID + "\n"; 27 } 28 }