コード例 #1
0
        static void Main(string[] args)
        {
            var baseAccount1 = new BaseAccount("John", "Smith");

            Account.PutBonus      = 5;
            Account.WithdrawBonus = 3;
            baseAccount1.Open();
            baseAccount1.Put(10);
            baseAccount1.Withdraw(20);
            baseAccount1.Withdraw(5);
            baseAccount1.CheckBalance();
            baseAccount1.BonusInfo();
            baseAccount1.Open();
            var platinumAccount = new PlatinumAccount("Harry", "Potter");

            platinumAccount.Open();
            platinumAccount.Withdraw(2);
            platinumAccount.Put(5);
            platinumAccount.Put(10);
            Account.DoingStorage();
            Console.ReadKey();
        }