📄 invoiceitem.java
字号:
public class InvoiceItem
extends Item
{
protected double total;
public InvoiceItem(InventoryItem item,
int _units)
{
super(item.ID);
desc = item.desc;
price = item.price;
units = _units;
total = price * units;
}
public String toString()
{
return super.toString() + " = " +
Util.dollar(total) +
"\t(" + desc + ")";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -