public GSM(string model, string manufacturer, Battery battery, Display display) { Model = model; Manufacturer = manufacturer; Price = null; Owner = null; this.battery = battery; this.display = display; }
public GSM(string model, string manufacturer, int price) { Model = model; Manufacturer = manufacturer; Price = price; Owner = null; this.battery = null; this.display = null; }
public GSM(string model, string manufacturer, string owner) { Model = model; Manufacturer = manufacturer; Price = null; Owner = owner; this.battery = null; this.display = null; }
// Задача 2 public GSM(string model, string manufacturer, int price, string owner, Battery battery, Display display) { Model = model; Manufacturer = manufacturer; Price = price; Owner = owner; this.battery = battery; this.display = display; }