Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
D
E
G
P
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.
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.
getName()
- Method in class
Stock
Returns the stock name.
getPortfolioBalance()
- Method in class
Portfolio
Calculates the total portfolio balance.
getPrice()
- Method in class
Stock
Returns the price per share.
P
Portfolio
- Class in
<Unnamed>
Portfolio(BankAccount, Stock, int)
- Constructor for class
Portfolio
Creates a Portfolio with given checking account, and given number of shares in the given stock.
Portfolio()
- Constructor for class
Portfolio
Creates a Portfolio with default checking account, null stock, and zero shares of that stock.
Portfolio(Portfolio)
- Constructor for class
Portfolio
Creates a copy of the given portfolio.
S
setPrice(double)
- Method in class
Stock
Sets the price per share.
Stock
- Class in
<Unnamed>
Stock(String, double)
- Constructor for class
Stock
Creates a stock with the given name and price per share.
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]
toString()
- Method in class
Portfolio
Returns a string representation of the portfolio.
toString()
- Method in class
Stock
Returns a string representation of the object.
W
withdraw(double)
- Method in class
BankAccount
Withdraws the given amount from the account and returns true if the resulting balance is positive.
B
D
E
G
P
S
T
W
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes