示例#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
 }
示例#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
 }
示例#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
 }
示例#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
 }