Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS682-HW1-OrderMatching
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rohit Prasad
CS682-HW1-OrderMatching
Commits
36d65426
Commit
36d65426
authored
Jan 20, 2018
by
Rohit Prasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Customer attribute to Trade class
parent
0c9d8735
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/Trade.java
src/Trade.java
+5
-1
No files found.
src/Trade.java
View file @
36d65426
...
@@ -3,10 +3,12 @@ public abstract class Trade {
...
@@ -3,10 +3,12 @@ public abstract class Trade {
float
price
;
float
price
;
int
time
;
int
time
;
String
type
;
String
type
;
Customer
c
;
Trade
(
int
qty
,
float
price
)
{
Trade
(
int
qty
,
float
price
,
Customer
c
)
{
this
.
qty
=
qty
;
this
.
qty
=
qty
;
this
.
price
=
price
;
this
.
price
=
price
;
this
.
c
=
c
;
}
}
int
getQty
()
{
return
qty
;
}
int
getQty
()
{
return
qty
;
}
...
@@ -16,4 +18,6 @@ public abstract class Trade {
...
@@ -16,4 +18,6 @@ public abstract class Trade {
int
getTime
()
{
return
time
;
}
int
getTime
()
{
return
time
;
}
String
getType
()
{
return
type
;
}
String
getType
()
{
return
type
;
}
Customer
getCustomer
()
{
return
c
;
}
}
}
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