B D E G S T W

B

BankAccount - Class in <Unnamed>
 
BankAccount(double) - Constructor for class BankAccount
Creates a bank account with the given balance.
BankAccount() - Constructor for class BankAccount
Creates a bank account with initial balance of zero.
BankAccount(BankAccount) - Constructor for class BankAccount
Copy constructor -- creates a bank account that is a copy of the existing bank account

D

deposit(double) - Method in class BankAccount
Deposits the given amount to the account.
depositInterest() - Method in class SavingsAccount
Deposits annual interest to the account according to the interest rate.

E

equals(Object) - Method in class BankAccount
Checks to see if two bank accounts are equal.

G

getAccountNumber() - Method in class BankAccount
Returns the account number.
getBalance() - Method in class BankAccount
Returns the current balance of the account.

S

SavingsAccount - Class in <Unnamed>
A savings account retains all the features of a bank account.
SavingsAccount(double, double) - Constructor for class SavingsAccount
Creates a savings account with the given initial balance and interest rate.
SavingsAccount() - Constructor for class SavingsAccount
Creates a savings account with initial balance equal to the minimum balance and interest rate equal to 2%.

T

toString() - Method in class BankAccount
Transforms the class into a string of the following form (for example, if the balance is 10.56): [BankAccount:balance=10.56]

W

withdraw(double) - Method in class BankAccount
Withdraws the given amount from the account and returns true if the resulting balance is positive.
withdraw(double) - Method in class SavingsAccount
Performs the withdrawal and returns true if the final balance is greater than the minimum balance, otherwise leaves balance unchanged and returns false.

B D E G S T W