package myArray;

public class BankAccount {
	private double balance;

	public BankAccount(double firstDeposit) { balance=firstDeposit; }
	public double getBalance() { return balance; }
	public void deposit(double amount) { balance +=amount; }
	public void withdraw(double amount) { balance -=amount; }
	public String toString() { return "BankAccount[balance="+balance+"]"; }

}