예제 #1
0
        static void Main(string[] args)
        {
            Employee antti = new Employee("Antti Lohtaja ", "dota", 4200.50f);
            Boss sami = new Boss("Sami Oravasaari", "rekt", 9000.0f, "Audi", 5000.0f);

            antti.Salary += 1000.0f;
            sami.Salary -= 2000.0f;
            sami.Bonus = 1000.0f;
            Console.WriteLine(Employee.tostring)
        }
예제 #2
0
파일: Program.cs 프로젝트: janimm/Olio1
        static void Main(string[] args)
        {
            Employee kirsi = new Employee("Kirsi Kernel", "Teacher", 4200.50f);
            Employee 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();
        }