Initial commit

This commit is contained in:
xixu-me committed 2024-03-17 22:31:48 +08:00
commit 054b77ccdd
27 files changed
+1362

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
public class Test {
public static void main(String[] args) {
Customer cs = new Customer("zhang", 2000);
Cashier cash = new Cashier("li", 1000);
cs.addGood(new Good("apple", 23.5f, 3));
cs.addGood(new Good("book", 67.5f, 2));
cs.addGood(new Good("Desk", 200f, 3));
cash.cash(cs);
cash.print(cs);
}
}