Commit f5abeedb authored by 9731073's avatar 9731073

new

parent 5b990fd0
......@@ -80,7 +80,7 @@ public class Flight {
/**
*
* @param flight which is a flight object
* shows details of a specific flight
* shows details of the chosen flight
*/
public void show(Flight flight){
java.lang.System.out.println(flight.getDateTime());
......
......@@ -2,7 +2,7 @@ import java.util.ArrayList;
/**
* @author Abtin Aghamirzaei
* this class is our users's class
* this class is our users class
*/
public class User {
String firstName;
......@@ -16,29 +16,29 @@ public class User {
}
/**
*
* @returnour user's first name
* @returnour user first name
*/
public String getFirstName(){
return firstName;
}
/**
*
* @returnour user's last name
* @returnour user last name
*/
public String getLastName(){
return lastName;
}
/**
*
* @return our user's ID
* @return our user ID
*/
public int getId(){
return id;
}
/**
*
* @param ticket which is a ticket that our customer wants to buy
* customer buy the ticket ad the seat will be booked
* @param ticket which is a ticket that our user wants to buy
* user reserve the ticket
*/
public void reserve(Ticket ticket,Seat seat){
ticket.getFlight().getAirplane().reserveSeat(ticket.getSeat());
......
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