Beispiel #1
0
 public override void WriteProgram(Work work)
 {
     Console.WriteLine($"当前时间:{work.Hour}点了,不行了,睡着了。");
 }
Beispiel #2
0
 public override void WriteProgram(Work work)
 {
     Console.WriteLine($"当前时间:{work.Hour}点 下班回家了");
 }
Beispiel #3
0
 public abstract void WriteProgram(Work work);
Beispiel #4
0
 public override void WriteProgram(Work w)
 {
     Console.WriteLine("当前时间:{0}点,过了20点,必须回家,明天再做吧", w.Hour);
 }
Beispiel #5
0
 public override void WriteProgram(Work w)
 {
     Console.WriteLine("当前时间:{0}点,下班回家了", w.Hour);
 }
Beispiel #6
0
 public override void WritteProgram(Work w)
 {
     Console.WriteLine($"当前时间{w.Hour}我睡着了");
 }