Пример #1
0
 public abstract void Work(string msgType, string msgCon, Colleague colleague);
Пример #2
0
 // 醫療行動
 public void Action(string msgCon, Colleague colleague)
 {
     Console.WriteLine("{0} 接收到 {1} 訊息:{2}。前往救護中", this.name, colleague.Name, msgCon);
 }
Пример #3
0
 // 接收一般訊息
 public void Receive(string msgCon, Colleague colleague)
 {
     Console.WriteLine("{0} 接收到 {1} 訊息:{2}", this.name, colleague.Name, msgCon);
 }