示例#1
0
        static void Main(string[] args)
        {
            CEO            c  = new CEO("Sachin", 1, 500000);
            Manager        m  = new Manager("Kodag", 2, 50000, "Developer");
            GeneralManager gm = new GeneralManager("Ashish", 3, 30000, "Sales", "promotion");


            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.WriteLine();

            c.Insert();
            m.Update();
            gm.delete();


            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            CEO            c  = new CEO("Niket", 30, 95000);
            Manager        m  = new Manager("nik", 10, 45000, "Software");
            GeneralManager gm = new GeneralManager("nikk", 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.WriteLine();

            c.Insert();
            m.Update();
            gm.delete();


            Console.ReadLine();
        }