Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Employee Information");
            Console.WriteLine();
            Console.WriteLine();

            Bank     b  = new Bank("Sonali Bank");
            Employee e1 = new Employee("Radwan", "0001", 1000);
            Employee e2 = new Employee("Rahim", "123123", 1000);
            Employee e3 = new Employee("Karim", "12322", 1000);

            b.AddEmployee(e1, e2, e3);
            b.ShowAllEmployees();
            Console.WriteLine();
            Console.WriteLine("Customer and Account Information");
            Console.WriteLine();
            Console.WriteLine();
            Customer c  = new Customer("121", "Radwan", "Rangpur");
            Account  a1 = new SavingsAccount("Radwan", "12121", 10000);
            Account  a2 = new FixedAccount("Radwan", "12121", 10000, 2015, 5);

            //Employee a3 = new SalaryEmployee("Radwan", "12121", 10000, 1,10);
            c.AddAccounts(a1, a2);
            c.ShowAllAccounts();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Bank     b  = new Bank("Sonali Bank");
            Employee e1 = new Employee("Tanvir", "121");
            Employee e2 = new Employee("Sabbir", "122");
            Employee e3 = new Employee("Rahim", "123");

            b.AddEmployee(e1);
            b.AddEmployee(e2, e3);
            //b.ShowAllEmployees();

            Customer c  = new Customer("121", "Tanvir", "Dhaka");
            Account  a1 = new SavingsAccount("Tanvir", "1133", 120.00);
            Account  a2 = new FixedAccount("Tanvir", "1134", 50000, 2015, 5);

            FixedAccount a3 = new FixedAccount();

            a3.Demo1();
            a3.Demo2();

            a2.Demo1();
            a2.Demo2();
            c.AddAccounts(a1, a2);
            c.ShowAllAccounts();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            // Nullable<int> i = null;
            int?   i = null;
            double?d = null;  //Nullable <double> d

            Console.WriteLine(i);


            Bank     b  = new Bank("Sonali Bank");
            Employee e1 = new Employee("123", "Tanvir");
            Employee e2 = new Employee("124", "Sabbir");

            b.AddEmployee(e1, e2);
            //b.ShowAllEmployees();

            Customer c = new Customer("1", "Tanvir", "Dhaka");
            //Account a = new Account();
            Account a1 = new SavingsAccount("3245", "Tanvir", 120.00);
            Account a2 = new FixedAccount("3246", "Tanvir", 50000.00, 2015, 5);

            c.AddAccount(a1, a2);
            c.ShowAllAccounts();
        }