예제 #1
0
 /// <summary>
 /// 聲明
 /// </summary>
 /// <param name="message">聲明資訊</param>
 /// <param name="colleague">聲明國家</param>
 public abstract void Declare(string message, Country colleague);
예제 #2
0
 public override void Declare(string message, Country colleague)
 {
     if (colleague == colleague1)
     {
         colleague2.GetMessage(message);
     }
     else
     {
         colleague1.GetMessage(message);
     }
 }