Seat.java (256B)
1 public class Seat { 2 public boolean isOccupied; 3 4 public int ID; 5 6 public Flight flight; 7 8 public Seat(boolean isOccupied_, int ID_) { 9 ID = ID_; 10 isOccupied = isOccupied_; 11 } 12 public String toString() 13 { 14 return "Seat ID : " + ID; 15 } 16 17 }