Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            const decimal OPENING_BALANCE  = 55m;
            const decimal MONTHLY_INTEREST = 0.0033m;

            //Create and use Savings object.
            Savings savings = new Savings(OPENING_BALANCE);

            savings.AddMonthlyInterest(MONTHLY_INTEREST);
            savings.ShowBalance();

            //Create and use Checking object.
            Checking checking = new Checking(OPENING_BALANCE);

            checking.DeductServiceCharge();
            checking.ShowBalance();

            //Create and use JointSavings object.
            JointSavings jointSavings = new JointSavings("George", "Jane", OPENING_BALANCE);

            jointSavings.DisplayOwners();
            jointSavings.AddMonthlyInterest(MONTHLY_INTEREST);
            jointSavings.ShowBalance();
            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Savings mySavingAccount = new Savings("Tasnuva Haque", 100);

            //mySavingAccount.ShowStartBalance();
            //mySavingAccount.AddMonthlyInterest(0.0045m);

            Console.WriteLine("\n");
            Checking myCheckingAccount = new Checking("Tasnuva Haque", 100);

            //myCheckingAccount.ShowStartBalance();
            //myCheckingAccount.DeductServiceCharge();
            Console.WriteLine("\n");

            JointAccount ourJointAccount = new JointAccount("Tasnuva Haque", "Nobinur Rahman", 150);
            //ourJointAccount.showAccountHolderName();
            //ourJointAccount.ShowStartBalance();
            //ourJointAccount.AddMonthlyInterest(0.0049m);
        }