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
7e5fb883
Commit
7e5fb883
authored
Jan 20, 2018
by
Rohit Prasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement constructor to create object from its own instance
parent
dc3bc8fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/BuyOrder.java
src/BuyOrder.java
+4
-0
src/SellOrder.java
src/SellOrder.java
+4
-0
No files found.
src/BuyOrder.java
View file @
7e5fb883
...
...
@@ -3,4 +3,8 @@ public class BuyOrder extends Order {
BuyOrder
(
int
time
,
Customer
c
,
Stock
stock
,
int
qty
,
float
price
)
{
super
(
time
,
"BUY"
,
c
,
stock
,
qty
,
price
);
}
BuyOrder
(
BuyOrder
b
)
{
super
(
b
);
}
}
src/SellOrder.java
View file @
7e5fb883
...
...
@@ -2,4 +2,8 @@ public class SellOrder extends Order {
SellOrder
(
int
time
,
Customer
c
,
Stock
stock
,
int
qty
,
float
price
)
{
super
(
time
,
"SELL"
,
c
,
stock
,
qty
,
price
);
}
SellOrder
(
SellOrder
s
)
{
super
(
s
);
}
}
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