Esempio n. 1
0
        static void Main(string[] args)
        {
            BankA firtbank = new BankA();

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

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

            unionbank.getBalance();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            BankA bankA = new BankA();

            bankA.getBalance();

            BankB bankB = new BankB();

            bankB.getBalance();

            BankC bankC = new BankC();

            bankC.getBalance();
        }
Esempio n. 3
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);
        }