示例#1
0
文件: Program.cs 项目: Randray/Demo4
        static void ShowSomeWokr(EMployee empl)
        {

            empl.Work();



        }
示例#2
0
文件: Program.cs 项目: Randray/Demo4
        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);



        }