Beispiel #1
0
        /// <summary>
        /// Method Override Usage
        /// </summary>
        private void MethodOverrideUsage()
        {
            Console.WriteLine("=> Method Override Usage: ");

            Manager chucky = new Manager("Chucky", 50, 92, 100000, "333-23-2322", 9000);

            chucky.GiveBonus(300);
            chucky.DisplayStatus();
            Console.WriteLine();

            SalesPerson fran = new SalesPerson("Fran", 43, 93, 3000, "932-32-3232", 31);

            fran.GiveBonus(200);
            fran.DisplayStatus();

            Console.WriteLine();
        }