Example #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();
        }
Example #2
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();
        }