Commit 95355cce authored by Rohit Prasad's avatar Rohit Prasad

Initialize time and type in constructor

parent 36d65426
...@@ -5,10 +5,12 @@ public abstract class Trade { ...@@ -5,10 +5,12 @@ public abstract class Trade {
String type; String type;
Customer c; Customer c;
Trade(int qty, float price, Customer c) { Trade(int time, String type, Customer c, int qty, float price) {
this.qty = qty; this.qty = qty;
this.price = price; this.price = price;
this.c = c; this.c = c;
this.time = time;
this.type = type;
} }
int getQty() { return qty; } int getQty() { return qty; }
......
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