Beispiel #1
0
        static void Main()
        {
            CEO            a1 = new CEO("parag", 5, 12.65M, "peon", "holiday");
            CEO            a2 = new CEO("akash", 4, 36.34M, "GM", "Bonus");
            CEO            a3 = new CEO("Harish", 9, 26.43M, "Director", "Hike");
            GeneralManager a5 = new GeneralManager("Omkar", 3, 42.25M, "Instructor", "Leave");

            a1.CalNetSalary();
            a5.CalNetSalary();
            Console.WriteLine(a1.EmpNo);
            Console.WriteLine(a2.EmpNo);
            Console.WriteLine(a3.EmpNo);
            Console.WriteLine(a1.Name);
            Console.WriteLine(a2.Designation);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Manager o = new Manager("Ashwini", 10000, 2, "QualityManager");

            Console.WriteLine("Name:" + o.Name + "   Salary:" + o.CalNetSalary());

            GeneralManager o1 = new GeneralManager("Ankita", 20000, 3, "PL", "health");

            Console.WriteLine("Name:" + o1.Name + "   Salary:" + o1.CalNetSalary());

            CEO o2 = new CEO("Manvi", 25000, 4);

            Console.WriteLine("Name:" + o2.Name + "   Salary:" + o2.CalNetSalary());

            Console.ReadLine();
        }