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

            bankAccount.AddToBalance(100);

            SimpleMath simpleMath = new SimpleMath();

            Console.WriteLine(Information(bankAccount));

            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            double[] numbers = new double[] { 1, 2, 3, 42, 42154 };
            SimpleMath.Add(numbers);

            BankAccount bankAccount = new BankAccount(1000);

            Console.WriteLine("Original balance: {0}", bankAccount.Balance);
            bankAccount.AddToBalance(100);
            Console.WriteLine("Increased balance: {0}", bankAccount.Balance);

            ChildBackAccount childBackAccount = new ChildBackAccount();

            Console.WriteLine("\tOriginal child balance: {0}", childBackAccount.Balance);
            childBackAccount.AddToBalance(10);
            Console.WriteLine("\tIncreased child balance: {0}", childBackAccount.Balance);

            Console.ReadLine();
        }