예제 #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 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>();
 }
예제 #3
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>();
 }
예제 #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;
 }
예제 #5
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>();
 }