Пример #1
0
        static void Main()
        {
            Console.WriteLine("manager");
            Manager m1 = new Manager("Akshay", 7000000, 1, "HR");

            Console.WriteLine("name " + m1.NAME);
            Console.WriteLine("net salary == " + m1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.WriteLine("general manager");
            GeneralManager gm1 = new GeneralManager("Ridham", 1000000, 1, "GM", "abccc");

            Console.WriteLine("name " + gm1.NAME);
            Console.WriteLine("net salary == " + gm1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.WriteLine("CEO");
            CEO c1 = new CEO("akash", 800000, 4);

            Console.WriteLine("name " + c1.NAME);
            Console.WriteLine("net salary == " + c1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.ReadLine();
        }
Пример #2
0
        static void Main()
        {
            Console.WriteLine("manager");
            Manager m1 = new Manager("Ashish", 6000000, 1, "HR");

            Console.WriteLine("name " + m1.NAME);
            Console.WriteLine("net salary == " + m1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.WriteLine("general manager");
            GeneralManager gm1 = new GeneralManager("Supriya", 900000, 1, "GM", "abcde");

            Console.WriteLine("name " + gm1.NAME);
            Console.WriteLine("net salary == " + gm1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.WriteLine("CEO");
            CEO c1 = new CEO("Ashish", 700000, 4);

            Console.WriteLine("name " + c1.NAME);
            Console.WriteLine("net salary == " + c1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.ReadLine();
        }