public override void sendMessage(string message, AUser sender) { foreach (var user in this.Users) { if (user != sender) { user.receiveMessage(message); } } }
public abstract void sendMessage(string message, AUser sender);
public void AddNewUser(AUser user) { this.Users.Add(user); }