/*
	This is an atm class, it demonstrates method overloading
	
*
*/

public class AtmOverload
{
	private double balance;
	
	
	// This constructor sets the starting balance at 0.0;
		
	public AtmOverload()
	{
		balance = 0.0;
	}
	
	/*
		This constructor setst the starting balance to the value
		passed as an argument
		
	*
	*/
	
	public AtmOverload(double startBalance)
	{	
		balance = startBalance;
		
	}
	
	// This is the deposit method
	
	public void deposit(double amount)
	{
		balance += amount;
	}
	
	// This is the withdraw method
	
	public void withdraw(double amount)
	{
		balance -= amount;
	}
	
	// This is the set balance method
	
	public void setBalance(double newbalance)
	{
		balance = newbalance;
		
	}
	
	// This is the get balance method
	
	public double getBalance()
	{
		return balance;
	}
}