Commit f5abeedb authored by 9731073's avatar 9731073

new

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