|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BankAccount
public class BankAccount
Class for bank accounts supporting deposit, withdraw, and balance inquiry.
Constructor Summary | |
---|---|
BankAccount()
Constructor for objects of class BankAccount |
Method Summary | |
---|---|
void |
deposit(double amount)
Deposits some amount into the account |
double |
getBalance()
Get the current balance |
void |
withdraw(double amount)
Withdraws some amount from the account |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BankAccount()
Method Detail |
---|
public void deposit(double amount)
amount
- amount to be depositedpublic double getBalance()
public void withdraw(double amount)
amount
- amount to be withdrawn
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |