public string NotifySon(string Message) { string Result = ""; if (FirstSon != null) { FirstSon.Help(Message); Result += "First one kicked out "; } if (SecondSon != null) { Result += "Second one kicked out"; SecondSon.Help(Message); } return(Result); }
public string NotifySon(string Message) { FirstSon.Help(Message); SecondSon.Help(Message); return("Both are kicked out"); }