Exemplo n.º 1
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.0f, "Audi", 5000.0f);

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

            ShowSomeWork(kirsi);
            ShowSomeWork(jussi);

            Console.ReadLine();
        }
Exemplo n.º 2
0
 static void ShowSomeWork(Employee empl)
 {
     empl.Work();
 }