public class BankAccountDriver
{
	public static void main( String []args)
	  {
		BankAccount a = new BankAccount ( );  // instantiate object a				a.setBalance(500);                                    // test constructor and methods
		a.setAccountNumber("A001");
		a.deposit(100);
		a. withdraw(50);
		System.out.println("Account Number -> " + a.getAccountNumber( ));
		System.out.println("Balance                -> " + a.getBalance( ));
		System.out.println("toString -> " + a);     //toString( ) name  is implied

		BankAccount b = new BankAccount ("B001" , 800 ); //  instantiate b
//test two parameter constructor
		b.deposit(200);           			//and methods
		b. withdraw(230);
		System.out.println("toString -> " + b);     //toString( ) name  is implied
      }
}

