|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectBankAccount
public class BankAccount
A simple Bank Account for Javadoc-ing
| Field Summary | |
|---|---|
(package private) double |
balance
|
| Constructor Summary | |
|---|---|
BankAccount()
Creates a BankAccount with zero balance |
|
BankAccount(double balance)
Creates a BankAccount with given balance |
|
| Method Summary | |
|---|---|
void |
deposit(double money)
Puts more money in the account |
double |
getBalance()
Returns the current balance |
boolean |
withdraw(double money)
Withdraws given amount of money (or not!) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
double balance
| Constructor Detail |
|---|
public BankAccount()
public BankAccount(double balance)
balance - initial balance| Method Detail |
|---|
public void deposit(double money)
money - amount to depositpublic boolean withdraw(double money)
money - amount to withdraw
public double getBalance()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||