Exemplo n.º 1
0
 public GSM(string model, string manufacturer, decimal price, string owner, Battery battery, Display display)
 {
     this.Model = model;
     this.Manufacturer = manufacturer;                                   //full constructor
     this.Price = price;
     this.Owner = owner;
     this.Battery = battery;
     this.Display = display;
 }
Exemplo n.º 2
0
 public GSM(string model, string manufacturer, decimal? 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;
     this.callHistory = new List<Calls>();
 }
 // Task.2: defne several constructors
 public GSM(string model, string manufactorer, int price, string owner
     ,Battery batteryCharacteristics,Display displayCharacteristics,List<Call> callHistory)
 {
     this.model = model;
     this.manufactorer = manufactorer;
     this.price = price;
     this.owner = owner;
     this.batteryCharacteristics = batteryCharacteristics;
     this.displayCharacteristics = displayCharacteristics;
     this.callHistory = callHistory;
 }
 public GSM(string model, string manufactorer, string owner
     , Battery batteryCharacteristics, Display displayCharacteristic)
     : this(model, manufactorer, 0, owner, batteryCharacteristics, displayCharacteristic,null)
 {
 }