Beispiel #1
0
        static void Main(string[] args)
        {
            BankA firstBank  = new BankA();
            BankB secondBank = new BankB();
            Bank  thirdBank  = new BankC();

            var firstBankBalance  = firstBank.GetBalance();
            var secondBankBalance = secondBank.GetBalance();
            var thirdBankBalance  = thirdBank.GetBalance();

            Console.WriteLine($"Bank A balance: {firstBankBalance} \nBank B balance: {secondBankBalance} \nBank C balance: {thirdBankBalance}");
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            BankA firtbank = new BankA();

            firtbank.getBalance();
            BankB gtbank = new BankB();

            gtbank.getBalance();
            BankC unionbank = new BankC();

            unionbank.getBalance();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            BankA bankA = new BankA();

            bankA.getBalance();

            BankB bankB = new BankB();

            bankB.getBalance();

            BankC bankC = new BankC();

            bankC.getBalance();
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            BankA firstbank = new BankA();
            //    firstbank.getBalance();
            BankB gtbank = new BankB();
            //    gtbank.getBalance();
            BankC unionbank = new BankC();
            //    unionbank.getBalance();

            var firstBankBal = firstbank.getBalance();
            var gtBankBal    = gtbank.getBalance();
            var unionBankBal = unionbank.getBalance();

            Console.WriteLine("your balance in firstbank is " + "$" + firstBankBal);
            Console.WriteLine("your balance in gtbank  is " + "$" + gtBankBal);
            Console.WriteLine("your balance in uniontbank  is " + "$" + unionBankBal);
        }