
/**
 *  Write a description of class BankAccount here.
 *
 *@author     (your name)
 *@created    May 15, 2003
 *@version    (a version number or a date)
 */

public class BankAccount {
	/**
	 *  Constructor for the BankAccount object
	 */
	public BankAccount() {
		balance = 0;
	}


	/**
	 *  Constructor for the BankAccount object
	 *
	 *@param  initialBalance  Description of the Parameter
	 */
	public BankAccount(double initialBalance) {
		balance = initialBalance;
	}


	/**
	 *  Description of the Method
	 *
	 *@param  amount  Description of the Parameter
	 */
	public void deposit(double amount) {
		balance = balance + amount;
	}


	/**
	 *  Description of the Method
	 *
	 *@param  amount  Description of the Parameter
	 */
	public void withdraw(double amount) {
		balance = balance - amount;
	}


	/**
	 *  Gets the balance attribute of the BankAccount object
	 *
	 *@return    The balance value
	 */
	public double getBalance() {
		return balance;
	}


	private double balance;
	/**
	 *  Description of the Field
	 */
	public int accountNumber;
	/**
	 *  Description of the Field
	 */
	public String ownersName;
}


