Esempio n. 1
0
        static void ShowSomeWokr(EMployee empl)
        {

            empl.Work();



        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            EMployee kirsi = new EMployee("Kirsi Kernel", "TEacher", 4200.50f);
            Boss jussi = new Boss("jussi Jurkka", "Head of Institute", 9000.00f,  5000.00f,"Audi");


            kirsi.Salary += 2000.0f;
            jussi.Salary -= 1000.0f;
            jussi.Bonus = 4000.0f;

            ShowSomeWokr(kirsi);
            ShowSomeWokr(jussi);



        }