Example #1
0
        static void Main(string[] args)
        {
            Employee kirsi = new Employee("Kirsi", "Teacher", 4200.50f);
            Boss jussi = new Boss("Jussi Jurkka", "Head of Instututre", 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();
        }
Example #2
0
 static void ShowSomeWork(Employee empl)
 {
     empl.Work();
 }