Commit 0154d87a authored by Rohit Prasad's avatar Rohit Prasad

Add setter method to set quantity value

parent 6fbbc447
...@@ -32,6 +32,8 @@ public abstract class Order { ...@@ -32,6 +32,8 @@ public abstract class Order {
Stock getStock() { return stock; } Stock getStock() { return stock; }
void setQty(int qty) { this.qty = qty; }
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
// self check // self check
......
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