コード例 #1
0
 //Constructor with full set of arguments
 public GSM(string model, string manufacturer, decimal price, string owner, Battery battery, Display display, List<Call> callHistory)
 {
     this.Model = model;
     this.Manufacturer = manufacturer;
     this.Price = price;
     this.Owner = owner;
     this.Battery = battery;
     this.Display = display;
     this.CallHistory = new List<Call>();
 }
コード例 #2
0
 public GSM(string manufacturer, string model, decimal price, string owner, Battery battery, Display display)
 {
     this.manufacturer = manufacturer;
     this.model = model;
     this.price = price;
     this.owner = owner;
     this.battery = battery;
     this.display = display;
     this.callHistory = new List<Call>();
 }
コード例 #3
0
ファイル: GSM.cs プロジェクト: tima-t/Telerik-Academy
 public GSM(string model, string manufacturer, double price = 0, string owner = null, Battery battery = null, Display display = null)
 {
     this.Model = model;
     this.Manufacturer = manufacturer;
     this.Price = price;
     this.Owner = owner;
     this.Battery = battery;
     this.Display = display;
     this.CallHistory = new List<Call>();
 }
コード例 #4
0
 public GSM(
     string name, 
     string manufacturer, 
     string owner, 
     Display gsmDisplay, 
     Battery gsmBattery, 
     uint price = 100)
 {
     this.Name = name;
     this.Manufacturer = manufacturer;
     this.Price = price;
     this.Owner = owner;
     this.gsmBattery = gsmBattery;
     this.gsmDisplay = gsmDisplay;
 }