public class ConsumerGoods extends Object implements Adjustment<Chargeable>
| 构造器和说明 |
|---|
ConsumerGoods(int price,
float quantity,
String name) |
public ConsumerGoods(int price,
float quantity,
String name)
price - 单价quantity - 数量name - 名称public long adjust(Bill<Chargeable> bill)
adjust 在接口中 Adjustment<Chargeable>bill - 待调整的账单public int getPrice()
public float getQuantity()
Copyright © 2020. All rights reserved.