Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            // Open a new account
            Account account = new Account("Jim Johnson");
            State t = new RedState(t);

            //
            // Apply financial transactions
            account.Deposit(500.0);
            account.Deposit(300.0);
            account.Deposit(550.0);
            account.PayInterest();
            account.Withdraw(2000.00);
            account.Withdraw(1100.00);

            // Wait for user
            Console.ReadKey();
        }
Ejemplo n.º 2
0
 public SilverState(double balance, Account account)
 {
     this.balance = balance;
     this.account = account;
     Initialize();
 }