Commit b1777934 authored by 9731087's avatar 9731087

2

parent cd019974
import java.util.ArrayList;
public class SystemManagement {
private ArrayList<Flight> flights;
public SystemManagement() {
}
public void addFlight(Flight flight) {
this.flights.add(flight);
}
public void removeFlight(Flight flight) {
this.flights.remove(flight);
}
}
public class Ticket {
private int SeatNo;
private int flightNo;
private int baggageWeight;
private Boolean foodStatus;
public Ticket(int seatNo, int flightNo, int baggageWeight, Boolean foodStatus){
this.SeatNo = seatNo;
this.flightNo = flightNo;
this.baggageWeight = baggageWeight;
this.foodStatus = foodStatus;
}
public Boolean getFoodStatus() {
return foodStatus;
}
public int getBaggageWeight() {
return baggageWeight;
}
public int getFlightNo() {
return flightNo;
}
public int getSeatNo() {
return SeatNo;
}
}
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