Пример #1
0
 public virtual bool CanSpeak(DayOfWeek day, Topic topic)
 {
     if (!IsBusy(day) && KnowsTopic(topic))
     {
         Console.Write($"{_name} will talk about {topic} on {day}");
         return(true);
     }
     else
     {
         return(_nextSpeaker.CanSpeak(day, topic));
     }
 }