You need to sign in or sign up before continuing.
Commit 6c1b1020 authored by Rohit Prasad's avatar Rohit Prasad

Add getter methods for time and type of trade

parent 342adf3a
public abstract class Trade { public abstract class Trade {
int qty; int qty;
float price; float price;
int time;
String type;
Trade(int qty, float price) { Trade(int qty, float price) {
this.qty = qty; this.qty = qty;
this.price = price; this.price = price;
} }
int getQty() { int getQty() { return qty; }
return qty;
}
float getPrice() { float getPrice() { return price; }
return price;
} int getTime() { return time; }
String getType() { return type; }
} }
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