Class BankAccount

java.lang.Object
  extended by BankAccount

public class BankAccount
extends java.lang.Object

Class for bank accounts supporting deposit, withdraw, and balance inquiry.

Version:
1.0
Author:
JP Vergara

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

BankAccount

public BankAccount()
Constructor for objects of class BankAccount

Method Detail

deposit

public void deposit(double amount)
Deposits some amount into the account

Parameters:
amount - amount to be deposited

getBalance

public double getBalance()
Get the current balance

Returns:
current balance

withdraw

public void withdraw(double amount)
Withdraws some amount from the account

Parameters:
amount - amount to be withdrawn