Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // Manager m = new Manager("ceo","akash",2,1500);
            // Manager m1 = new Manager("ceo", "akash", 3, 2500);
            Console.WriteLine("======");
            GenralManger m1 = new GenralManger("sir", "ceo", "akash", 2, 2500);

            Console.ReadLine();


            Employee e = new Manager("Manager", "mgr", 1, 53000);

            Console.WriteLine("Empid: " + e.EMPNO + ", Name: " + e.NAME + ", Basic salary: " + e.BASIC + ", Dept No: " + e.DEPTNO);
            Console.ReadLine();

            /*
             * Manager m = new GenralManger("GM", "",25000);
             * Console.WriteLine("Empid: " + m.EMPNO + ", Name: " + m.NAME + ", Basic salary: " + m.BASIC);
             * Console.ReadLine();
             */
            Employee ceo = new CEO("", 200000);

            Console.WriteLine("Empid: " + ceo.EMPNO + ", Name: " + ceo.NAME + ", Basic salary: " + ceo.BASIC + ", Net salary: " + ceo.CalNetSalary());
            Console.ReadLine();

            Employee ceo1 = new CEO("CEO", 1000);

            Console.WriteLine("Empid: " + ceo1.EMPNO + ", Name: " + ceo1.NAME + ", Basic salary: " + ceo1.BASIC + ", Net salary: " + ceo1.CalNetSalary());
            Console.ReadLine();
        }