예제 #1
0
 public override void GetMessage(string message, BaseCharacter characterFrom)
 {
     Console.WriteLine("{0}班长get{1}:{2}", base.Name, characterFrom.Name, message);
 }
 public abstract void GetMessage(string message, BaseCharacter characterFrom);
예제 #3
0
 public override void SendMessage(string message, BaseCharacter characterTo)
 {
     Console.WriteLine("{0}班长to {1}:{2}", base.Name, characterTo.Name, message);
     characterTo.GetMessage(message, this);
 }
 public abstract void SendMessage(string message, BaseCharacter characterTo);