コード例 #1
0
ファイル: Program.cs プロジェクト: jesconsa/Telerik-Academy
        internal static void Main()
        {
            var account = new Account("Jim Johnson");

            account.Deposit(500.0);
            account.Deposit(300.0);
            account.Deposit(550.0);
            account.PayInterest();
            account.Withdraw(2000.00);
            account.Withdraw(1100.00);
        }
コード例 #2
0
        internal static void Main()
        {
            var account = new Account("Jim Johnson");

            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();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: atree1987/MyWorks
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            // Open a new account
            Account account = new Account("Jim Johnson");

            // 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();
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: Iulian-Stan/DesignPatterns
 public SilverState(double balance, Account account)
 {
     this.balance = balance;
     this.account = account;
     Initialize();
 }