//File:	BankAccount3.java
import java.text.DecimalFormat;
public class BankAccount3
{
	//Attributes
	private	double balance;
	
	//Overloaded Constructors
	//NOTE:  Constructors have the same name as the class and return no values!!
	public BankAccount3()
	{
		balance = 0;
	}
	
	public BankAccount3 (double amount)
	{
		balance = amount;
	}
	
	
	//Behavior
	
	//Accessors
	public double getBalance ()
	{
		return balance;
	}

	
	public String toString()
	{
		DecimalFormat twoDigits = new DecimalFormat("0.00");
		return "This account has a balance of $ "
			 + twoDigits.format(balance) ;
	}
		
	//Mutators
	public void deposit (double amount)
	{
		balance = balance + amount;
	}
}
