Commit 342adf3a authored by Rohit Prasad's avatar Rohit Prasad

Implement Trade class

parent 91a38c9c
public abstract class Trade {
int qty;
float price;
Trade(int qty, float price) {
this.qty = qty;
this.price = price;
}
int getQty() {
return qty;
}
float getPrice() {
return price;
}
}
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