?? generalaccount.java
字號:
/** * A simple class used to implement common behavior for various * types of bank accounts. It should be extended to implement * behavior for specific accounts. */public class GeneralAccount { // unique account identifier private String accountNumber; // this will hold the current account balance protected float balance; public GeneralAccount( String accountNum ) { accountNumber = accountNum; } public String getAccountNumber() { return accountNumber; } public float getBalance() { return balance; } public void makeDeposit( float amount ) { balance += amount; } public void makeWithdrawal( float amount ) { balance -= amount; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -