예제 #1
0
        public static void BalanceTest()
        {
            var testA = new BankA();
            var testB = new BankB();
            var testC = new BankC();

            testA.GetBalance();
            testB.GetBalance();
            testC.GetBalance();
        }
예제 #2
0
        static void Main(string[] args)
        {
            BankA a = new BankA();

            Console.WriteLine(a.GetBalance());
            BankB b = new BankB();

            Console.WriteLine(b.GetBalance());
            BankC c = new BankC();

            Console.WriteLine(c.GetBalance());
        }