Esempio n. 1
0
        static void Main(string[] args)
        {
            GeneralManager o = new GeneralManager("ASASA", "ExManager", "Rajnikant", 50000, 10);

            Console.WriteLine(o.CalcNetSalary());
            o.display();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Employee o = new Manager();

            Console.WriteLine(o.CalcNetSalary());

            Employee o1 = new GeneralManager();

            Console.WriteLine(o1.CalcNetSalary());

            Employee o2 = new CEO();

            Console.WriteLine(o2.CalcNetSalary());

            Console.ReadLine();
        }