public class ConsumerGoods extends Object implements Adjustment<Chargeable>
| Constructor and Description |
|---|
ConsumerGoods(int price,
float quantity,
String name) |
| Modifier and Type | Method and Description |
|---|---|
long |
adjust(Bill<Chargeable> bill) |
String |
getName() |
int |
getPrice() |
float |
getQuantity() |
public ConsumerGoods(int price,
float quantity,
String name)
price - 单价quantity - 数量name - 名称public long adjust(Bill<Chargeable> bill)
adjust in interface Adjustment<Chargeable>bill - 待调整的账单public int getPrice()
public float getQuantity()
Copyright © 2020. All rights reserved.