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
Show 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 {
...
@@ -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
());
...
...
src/User.java
View file @
f5abeedb
...
@@ -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
custom
er wants to buy
* @param ticket which is a ticket that our
us
er 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
());
...
...
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