Commit 66067b28 authored by 9731050's avatar 9731050

third

parent d3e53022
package com.TicketManagement;
/**
* flight class represents fields related to flights
*
* @author Mohammad Kazemi
*/
public class Flight {
private String date;
private String destination;
......@@ -7,6 +11,7 @@ public class Flight {
private int ID;
private String source;
private Airplane model;
public Flight(String date,int ID,String destination,String source,String company,Airplane model){
this.date=date;
this.source=source;
......@@ -15,24 +20,49 @@ public class Flight {
this.ID=ID;
this.model=model;
}
/**
*
* @return flight id
*/
public int getID() {
return ID;
}
/**
*
* @return initial point of travel
*/
public String getSource() {
return source;
}
/**
*
* @return airline
*/
public String getCompany() {
return company;
}
/**
*
* @return model of airplane
*/
public Airplane getModel(){return model;}
/**
*
* @return flight date
*/
public String getDate() {
return date;
}
/**
*
* @return travel destination
*/
public String getDestination() {
return destination;
}
......
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