This commit is contained in:
xixu-me committed 2024-04-17 20:08:35 +08:00
1 parent 96aa932d73
commit 45da627b83
5 files changed

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
package shopping;
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);
}
}