1日目3段階目完了しました。

This commit is contained in:
s-ohasi
2026-09-18 10:50:49 +09:00
parent 2492cc0631
commit 5cc9015dc7
2 changed files with 43 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;
//
void sell(int amount) {
this.stock = this.stock - amount;
}
}