Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
lab7-1
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9731073
lab7-1
Commits
f5abeedb
Commit
f5abeedb
authored
May 05, 2019
by
9731073
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
5b990fd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Flight.java
src/Flight.java
+1
-1
User.java
src/User.java
+6
-6
No files found.
src/Flight.java
View file @
f5abeedb
...
...
@@ -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
());
...
...
src/User.java
View file @
f5abeedb
...
...
@@ -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
custom
er wants to buy
*
customer buy the ticket ad the seat will be booked
* @param ticket which is a ticket that our
us
er wants to buy
*
user reserve the ticket
*/
public
void
reserve
(
Ticket
ticket
,
Seat
seat
){
ticket
.
getFlight
().
getAirplane
().
reserveSeat
(
ticket
.
getSeat
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment