static void Main(string[] args)
        {
            Manager        m  = new Manager("Mayank", 10, 15000, "Software");
            GeneralManager gm = new GeneralManager("Mohit", 20, 55000, "logistics", "promoted");
            CEO            c  = new CEO("Ashish", 30, 95000);

            Console.WriteLine(c.EMPNO + " " + c.NAME + " " + c.DEPTNO + " " + c.BASIC + " " + c.CalcNetSalary());
            Console.WriteLine(m.EMPNO + " " + m.NAME + " " + m.DEPTNO + " " + m.BASIC + " " + m.DESGN + " " + m.CalcNetSalary());
            Console.WriteLine(gm.EMPNO + " " + gm.NAME + " " + gm.DEPTNO + " " + gm.BASIC + " " + gm.DESGN + " " + gm.PERKS + " " + gm.CalcNetSalary());

            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            CEO            c  = new CEO("Rahul", 30, 95000);
            Manager        m  = new Manager("shubham", 10, 45000, "Software");
            GeneralManager gm = new GeneralManager("pratik", 20, 25000, "logistics", "promoted");


            Console.WriteLine(c.EMPNO + " " + c.NAME + " " + c.DEPTNO + " " + c.BASIC + " " + c.CalcNetSalary());
            Console.WriteLine(m.EMPNO + " " + m.NAME + " " + m.DEPTNO + " " + m.BASIC + " " + m.DESGN + " " + m.CalcNetSalary());
            Console.WriteLine(gm.EMPNO + " " + gm.NAME + " " + gm.DEPTNO + " " + gm.BASIC + " " + gm.DESGN + " " + gm.PERKS + " " + gm.CalcNetSalary());

            Console.ReadLine();
        }
Пример #3
0
        static void Main(string[] args)
        {
            Employee e1 = new Manager("T", 2, "manager");

            e1.Basic = 2500;
            e1.Display();
            Console.WriteLine();

            Employee e2 = new GeneralManager("neha", 3, "GeneralManager", "xyz");

            e2.Basic = 30000;
            e2.Display();
            Console.WriteLine();

            Employee e3 = new CEO("sweety", 4);

            e3.Basic = 10000000;
            e3.Display();
            Console.WriteLine();


            Employee e4 = new Manager();

            e4.Display();
            Console.WriteLine();

            Employee e5 = new GeneralManager();

            e5.Display();
            Console.WriteLine();


            Employee e6 = new CEO();

            e6.Display();
            Console.WriteLine();


            Console.ReadLine();
        }