public override void AssignBroadcastSlot() { // Assign a default BroadcastSlot, // which ensures the show is always available. BroadcastSlot = new BroadcastSlot(); System.Console.WriteLine($"{Name} is a {BroadcastSlot.Type} broadcast."); }
/// <summary> /// Create a new NBC show, broadcast on specified day and timeslot. /// </summary> /// <param name="name">Name of the show.</param> /// <param name="day">Day of broadcast.</param> /// <param name="hour">Hour of day.</param> /// <param name="minute">Minute of hour.</param> public NBCShow(string name, DayOfWeek day, int hour, int minute = 0) : base(name) { Slot = new BroadcastSlot(day, hour, minute); }