Пример #1
0
        static void Main(string[] args)
        {
            SalesPerson fred = new SalesPerson();

            fred.Age         = 31;
            fred.Name        = "Fred";
            fred.ID          = 787979;
            fred.Pay         = 30000;
            fred.SalesNumber = 479;
            Manager mike = new Manager("Mike", 34, 54, 60000, "234-54-544", 435);
            //Console.WriteLine("Mike's SSN: {0}, benefit : {1}", mike.SoscialSecurityNomber, mike.GetBenefitCost());
            Manager john = new Manager();

            mike.ShowEmp();
            mike.BonusEmp(123);
            mike.ShowEmp();

            /*double b = 8/2*(2+2);
             * Console.WriteLine("{0}",b);  */
            SalesPerson jack = new SalesPerson("Jack", 45, 25, 10000, "542-45-563", 123);

            jack.ShowEmp();
            jack.BonusEmp(43);
            jack.ShowEmp();
        }