public Battery(string model, int timeIdle, int hour, BattertType type = BattertType.Unknown) // Constructor { if (model == null) { throw new ArgumentNullException("mode", "Can not be empty!"); } this.Model = model; this.HoursIDL = timeIdle; this.HoursTalk = hour; this.Type = type; }
// Constructor public Battery(string model, int timeIdle, int hour, BattertType type = BattertType.Unknown) { if (model == null) { throw new ArgumentNullException("mode", "Can not be empty!"); } this.Model = model; this.HoursIDL = timeIdle; this.HoursTalk = hour; this.Type = type; }