/// <summary> /// Constructor creating new clock times from a string /// </summary> /// <param name="time">String with the clock time in the format HH:mm</param> public ClockDisplay(string time) { _hourDisplay = new NumberDisplay(23); _minuteDisplay = new NumberDisplay(59); Time = time; }
public ClockDisplay(int hour, int minute) { _hourDisplay = new NumberDisplay(Hours, hour); _minuteDisplay = new NumberDisplay(Minutes, minute); }
/// <summary> /// Constructor creating new clock times /// </summary> /// <param name="hour">The hour to be set</param> /// <param name="minute">The minute to be set</param> public ClockDisplay(int hour, int minute) { _hourDisplay = new NumberDisplay(23, hour); _minuteDisplay = new NumberDisplay(59, minute); }