Exemple #1
0
 public GSM(string model, string manufacturer)
 {
     this.Model = model; //setting the property
     this.Manufacturer = manufacturer; //setting the property
     this.price = null; //setting the field
     this.owner = null; //setting the field
     this.displayInformation = null; //setting the field
     this.batteryInformation = null; //setting the field
 }
Exemple #2
0
 public GSM(string model, string manufacturer, decimal price, string owner, Display displayInformation, Battery batteryInformation)
     : this(model, manufacturer, price, displayInformation, batteryInformation)
 {
     this.Owner = owner; //setting the property
 }
Exemple #3
0
 public GSM(string model, string manufacturer, decimal price, Display displayInformation, Battery batteryInformation)
     : this(model, manufacturer, displayInformation, batteryInformation)
 {
     this.Price = price; //setting the property
     this.owner = null; //setting the field
 }
Exemple #4
0
 public GSM(string model, string manufacturer, Display displayInformation, Battery batteryInformation)
     : this(model, manufacturer)
 {
     this.DisplayInformation = displayInformation; //setting the property
     this.BatteryInformation = batteryInformation; //setting the property
 }