Exemple #1
0
        public static void Main()
        {
            Console.WriteLine("============Employee=================");
            Employee a1 = new Manager("Employee", "ABC", 10000, 01);

            a1.DisplayData();
            Console.ReadLine();


            Console.WriteLine("============Manager=================");
            Employee a2 = new Manager("Manager", "Amit", 30000, 11);

            a2.DisplayData();
            Console.ReadLine();

            Console.WriteLine("============GenerelManager=================");
            Employee a3 = new GenerelManager("Derimilk", "general manager", "Mohit", 50000, 12);

            a3.DisplayData();
            Console.ReadLine();


            Console.WriteLine("============CEO=================");
            CEO a4 = new CEO("Rahul", 80000, 13);

            a4.DisplayData();


            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Employee e1 = new Manager("Mahesh", 2, "Manager");

            e1.BASIC = 20000;
            e1.Display();
            Console.WriteLine();

            Employee e2 = new GeneralManager("Vishal", 3, "GeneralManager", "Authority");

            e2.BASIC = 40000;
            e2.Display();
            Console.WriteLine();


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

            e3.BASIC = 100000;
            e3.Display();
            Console.WriteLine();


            Employee e4 = new Manager();

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

            Console.ReadLine();
        }
Exemple #3
0
        public static void Main()
        {
            Console.WriteLine("============Manager=================");
            Employee o1 = new Manager("Managet", "Amit", 3000, 11);

            o1.DisplayData();
            Console.ReadLine();

            Console.WriteLine("============GenerelManager=================");
            Employee o2 = new GenerelManager("Derimilk", "general manager", "Mohit", 2000, 12);

            o2.DisplayData();
            Console.ReadLine();


            Console.WriteLine("============CEO=================");
            CEO o3 = new CEO("Rahul", 55000, 101);

            o3.DisplayData();


            Console.ReadLine();
        }
Exemple #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Manager");
            Manager mg = new Manager("Hello", "MOhit", 11, 17000000);

            Console.WriteLine(mg.Name + "   " + mg.BasicSal);
            Console.WriteLine("Net sal : " + mg.calcNetSalary());


            Console.WriteLine("----------------------------------------");
            Console.WriteLine("General Manager");
            GeneralManager gmg = new GeneralManager("Hello", "Hello", "MOHIT", 12, 16000000);

            Console.WriteLine(gmg.Name + "   " + gmg.BasicSal);
            Console.WriteLine("Net sal : " + gmg.calcNetSalary());

            Console.WriteLine("----------------------------------------");
            Console.WriteLine("CEO");
            CEO c = new CEO("MOHIT", 13, 20000000);

            Console.WriteLine(c.Name + "   " + c.BasicSal);
            Console.WriteLine("Net sal : " + c.calcNetSalary());
            Console.ReadLine();
        }