段階3

This commit is contained in:
m-shimizu
2026-09-15 14:26:28 +09:00
parent 357ad900a1
commit 389c1a0a48
2 changed files with 47 additions and 0 deletions

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

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