Exemple #1
0
        static void Main()
        {
            Console.WriteLine("Details");
            Console.WriteLine("Manager");
            Manager m = new Manager("UmeshM", 2, 50000, "Manager");

            Console.WriteLine("Employee ID : " + " " + m.EMPNO);
            Console.WriteLine("Name : " + " " + m.NAME);
            Console.WriteLine("Dept no : " + " " + m.DEPTNO);
            Console.WriteLine("Net salary : " + " " + m.CalcNetSalary());
            Console.WriteLine("Designation : " + " " + m.DESIGNATION);
            m.Insert();
            m.Upadte();
            m.Delete();

            Console.WriteLine(" ");
            Console.WriteLine("General Manager");
            GeneralManager g = new GeneralManager("UmeshGM", 3, 60000, "General Manager", "perk1");

            Console.WriteLine("Employee ID : " + " " + g.EMPNO);
            Console.WriteLine("Name : " + " " + g.NAME);
            Console.WriteLine("Dept no : " + " " + g.DEPTNO);
            Console.WriteLine("Net Salary : " + " " + g.CalcNetSalary());
            Console.WriteLine("Designation : " + " " + g.DESIGNATION);
            g.Insert();
            g.Upadte();
            g.Delete();

            Console.WriteLine(" ");
            Console.WriteLine("CEO");
            CEO c = new CEO("Umesh", 4, 70000);

            Console.WriteLine("Employee ID : " + " " + c.EMPNO);
            Console.WriteLine("Name : " + " " + c.NAME);
            Console.WriteLine("Dept no : " + " " + c.DEPTNO);
            Console.WriteLine("Net salary : " + " " + c.CalcNetSalary());
            c.Insert();
            c.Upadte();
            c.Delete();

            Console.ReadLine();
        }