public class Account
{
	private int acctID;
	private double balance;
	public int getAcctID()
	{
		return acctID;
	}
	public double getBalance()
	{
		return balance;
	}
	public void setBalance(double newBalance)
	{
		balance=newBalance;
	}
	
	//added signature
	public Account(int _id, double _balance)
	{
		acctID=_id;
		balance=_balance;
	}
	
	// demonstrates function overloading for Account and the use of this to indicate member of the class and not
	//		the formal parameters (which by the way has the same name as the member of the class). 
	// --This is not recommended.
	public Account(int acctID)
	{
		this.acctID=acctID;
		balance=50.0;
	}
	
			
	
	public static void main(String args[]) 
	{
			
		//next line commented if using signature
		// Account a1= new Account();
		Account a1= new Account(30,300.0);
		
		
		//next line commented if using signature
		//a1.setBalance(300.0);
		System.out.println("Balance of A1= $" + a1.getBalance());
		Account a2= new Account(40);
		System.out.println("Balance of A2= $" + a2.getBalance());
		
		}
}
