|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPortfolio
public class Portfolio
Constructor Summary | |
---|---|
Portfolio()
Creates a Portfolio with default checking account. |
|
Portfolio(BankAccount checking)
Creates a Portfolio with given checking account. |
|
Portfolio(Portfolio p)
Creates a copy of the given portfolio. |
Method Summary | |
---|---|
BankAccount |
getChecking()
Returns the checking account. |
void |
setChecking(BankAccount c)
Sets the checking account in the portfolio to the given account. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Portfolio(BankAccount checking)
checking
- Checking accountpublic Portfolio()
public Portfolio(Portfolio p)
p
- Portfolio to be copied.Method Detail |
---|
public BankAccount getChecking()
public void setChecking(BankAccount c)
c
- New checking account
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |