0914 段階3 <余裕がある人向け>を追加
This commit is contained in:
@@ -7,5 +7,9 @@ public class Item {
|
||||
public void sell(int amount) {
|
||||
this.stock = this.stock - amount;
|
||||
}
|
||||
|
||||
public int totalPrice() {
|
||||
return this.price*this.stock;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user