public GSM(string model, string manufacturer, int price, string owner, Battery battery, Display display) { this.model = model; this.manufacturer = manufacturer; this.price = price; this.owner = owner; this.battery = battery; this.display = display; }
public GSM(string model, string manufacturer, int price) { this.model = model; this.manufacturer = manufacturer; this.price = price; this.owner = null; this.battery = null; this.display = null; }
//task2 public GSM(string phoneModel, string phoneManufacturer, decimal phonePrice, string phoneOwner, Battery phoneBattery, Display phoneDisplay) { this.Battery = phoneBattery; this.Display = phoneDisplay; this.Model = phoneModel; this.Manufacturer = phoneManufacturer; this.Price = phonePrice; this.Owner = phoneOwner; this.CallHistory = new List<Call>(); //task9 }
public GSM(string model, string manufacturer, decimal? price, string owner, string batteryModel, double? batteryIdleTime, double? batteryTalkTime, double? displaySize, uint? displayColors, BatteryType batteryType) { this.Model = model; this.Manufacturer = manufacturer; this.Price = price; this.Owner = owner; this.battery = new Battery(batteryModel, batteryIdleTime, batteryTalkTime, batteryType); this.display = new Display(displaySize, displayColors); }
public MobilePhone(string model, string manufacturer, decimal price, string owner = null, Battery battery = null, Display display = null) { this.Model = model; this.Manufacturer = manufacturer; this.Price = price; this.Owner = owner; if (battery == null) { battery = new Battery(); } this.battery = battery; if (display == null) { display = new Display(); } this.display = display; this.CallHistory = new List<Call>(); }
public GSM(string model, string manufacturer, decimal? price, string owner, Battery battery, Display display) : this(model, manufacturer, price, owner, battery) { this.DisplayCharacteristics = display; }
public GSM(string model, string manufacturer, decimal? price, string owner, Battery battery) : this(model, manufacturer, price, owner) { this.BatteryCharacteristics = battery; }
public Gsm(string model, string manufacture, decimal? price, string owner, Battery baterry, Display display) : this(model, manufacture, price, owner, baterry) { this.Display = display; }
public Gsm(string model, string manufacture, decimal? price, string owner, Battery baterry) : this(model, manufacture, price, owner) { this.Battery = baterry; }
public GSM(string model, string manufacturer, Battery battery, Display display) : this(model, manufacturer, battery) { this.display = new Display(); }
public GSM(string model, string manufacturer, Battery battery) : this(model, manufacturer) { this.battery = new Battery("Unknown model"); }
//constructor with all the info public GSM( string model, string manufacturer, float? price, string owner, string batteryModel, float? hoursIdle, float? hoursTalk, BatteryType? batteryType, int? size, long? numberColors) { this.Model = model; this.Manufacturer = manufacturer; this.Price = price; this.Owner = owner; this.battery = new Battery(batteryModel, hoursIdle, hoursTalk, batteryType); this.display = new Display(size, numberColors); }