public override string VisitUser1(AbstractElement element) { string s; User1 user1 = element as User1; user1.IsTaken = true; return(s = $"User {user1.Name} set new narada *{user1.Narada}* in: {user1.Date} - this date is taken!"); }
public void Add(AbstractElement element) { users.Add(element); }
public void Remove(AbstractElement customer) { users.Remove(customer); }
public abstract string VisitUser1(AbstractElement element);