?? savingaccount.java
字號:
package model;import Exception.*;public class SavingAccount extends Account { public SavingAccount(String password, String name, String personId, String email) { super(password, name, personId, email); } public synchronized void withdraw(double money) throws BusinessException.BalanceNotEnoughException { if (this.getBalance() - money >= 0) this.setBalance(this.getBalance() - money); else { throw new BusinessException.BalanceNotEnoughException( "BalanceNotEnoughException--->SavingAccount 您的余額不足 ! "); } } /* * public String toString() { return * this.getName()+"\t"+this.getPersonId()+"\t"+this.getEmail(); } */ public boolean equals(Object o) { return super.equals(o); } @Override public int hashCode() { // TODO Auto-generated method stub return super.hashCode(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -