Beispiel #1
0
        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);
        }
Beispiel #2
0
 static void CheckBalance(Accountv3 acc)
 {
     Console.WriteLine($"Account Balance is : {acc.GetBalance()}");
 }