home *** CD-ROM | disk | FTP | other *** search
- public class BankAccount {
- private static int m_AIds;
- private int m_nAccountId;
- private double m_dBalance;
-
- public void Withdrawal(double dAmount) throws InsufficientFundsException {
- if (this.m_dBalance < dAmount) {
- throw new InsufficientFundsException(this, dAmount);
- } else {
- this.m_dBalance -= dAmount;
- }
- }
-
- BankAccount(double dInitialBalance) {
- this.m_dBalance = dInitialBalance;
- this.m_nAccountId = ++m_AIds;
- }
-
- // $FF: renamed from: Id () int
- public int method_0() {
- return this.m_nAccountId;
- }
-
- public double Balance() {
- return (double)((int)(this.m_dBalance * (double)100.0F + (double)0.5F)) / (double)100.0F;
- }
- }
-