0914 段階3 小澤

This commit is contained in:
2026-09-14 16:07:03 +09:00
parent 28076595d2
commit 1b2d0829d1
2 changed files with 46 additions and 0 deletions

11
em-oop/src/Item.java Normal file
View File

@@ -0,0 +1,11 @@
public class Item {
String name;
int price;
int stock;
public void sell(int amount) {
this.stock = this.stock - amount;
}
}