📄 transaction.java
字号:
public abstract class Transaction
{
protected String descript;
protected String type;
protected double amount;
public abstract double getAmount();
public void showTransaction()
{
System.out.println("[ " + type + " ]\t" + getAmount() + "\t" + descript);
}
protected void getDataFor(String _type)
{
type = _type;
System.out.print("\n=> Description for " + type + ": ");
descript = Console.readString();
System.out.print("=> Enter amount: $");
amount = Console.readDouble();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -