示例#1
0
 public override void Declare(string message, Country country)
 {
     if (country == country1)
     {
         country2.GetMessage(message);
     }
     else
     {
         country1.GetMessage(message);
     }
 }
示例#2
0
 public override void Declare(string message, Country colleague)
 {
     if (colleague == colleague1)
     {
         colleague2.GetMessage(message);
     }
     else
     {
         colleague1.GetMessage(message);
     }
 }