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 {
int qty;
float price;
int time;
String type;
Trade(int qty, float price) {
this.qty = qty;
this.price = price;
}
int getQty() {
return qty;
}
int getQty() { return qty; }
float getPrice() {
return price;
}
float getPrice() { 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