// BankAccount.java
// by Bryson Payne
// CS1302
// Lab 1
// 8/25/2005

// package cs1302.bank;

/**
Stores and manages info for a bank account.
*/
public class BankAccount
{
	/**
	Returns the balance of the account.
	@return The balance of the account.
	*/
	public double getBalance()
	{
		return balance;
	}

	/**
	Adds money to the account.
	@param amount The amount to add.
	*/
	public void deposit(double amount)
	{
		balance += amount;
	}

	/**
	Removes money from the account.
	@param amount The amount to withdraw.
	*/
	public void withdraw(double amount)
	{
		balance -= amount;
	}


	/**
	The account balance.
	*/
	private double balance;
}
