Commit 60ec98b3 authored by unknown's avatar unknown

third

parent 021f7fcc
...@@ -5,5 +5,16 @@ public class System { ...@@ -5,5 +5,16 @@ public class System {
private ArrayList<Flight> flights ; private ArrayList<Flight> flights ;
public System(){
}
public void addFlight(Flight flight){
this.flights.add() ;
}
public void removeFlight(Flight flight){
this.flights.remove(flight) ;
}
} }
public class Ticket { public class Ticket {
private int seatNum ;
private int flightNum ;
private int luggageWeight ;
private Boolean foodStatus ;
public Ticket(int seatNum , int flightNum , int luggageWeight , boolean foodStatus){
this.seatNum = seatNum ;
this.flightNum = flightNum ;
this.luggageWeight = luggageWeight ;
this.foodStatus = foodStatus ;
}
public int getSeatNum(){
return seatNum ;
}
public int getFlightNum(){
return flightNum ;
}
public int getLuggageWeight(){
return luggageWeight ;
}
public Boolean getFoodStatus(){
return foodStatus ;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment