static void TestAccountv3() { Accountv3 account = new Accountv3("1234567890", "Test Account", 100000.00); //We now want to check the balance account.GetBalance(); //We can now debit and credit the account and the account will handle it's properties account.CreditAccount(1000); account.DebitAccount(1000); }
static bool WithDrawal(Accountv3 acc) { Console.WriteLine("How much would you like to Withdraw"); try { double amt; double.TryParse(Console.ReadLine(), out amt); acc.DebitAccount(amt); return(true); } catch (Exception) { return(false); } }