Beispiel #1
0
 public GSM(string model, string manufacturer, ushort? price, string owner, Battery batteryChar, Display displayChar)
     : this(model, manufacturer, price)
 {
     this.Owner = owner;
     this.batteryCharacteristics = new Battery(batteryChar);
     this.displayCharacteristics = new Display(displayChar);
 }
Beispiel #2
0
 public Battery(Battery battery)
 {
     this.Model = battery.Model;
     this.HoursIdle = battery.HoursIdle;
     this.HoursTalk = battery.HoursTalk;
     this.Type = battery.Type;
 }
Beispiel #3
0
        public GSM(string model, string manufacturer)
        {
            this.Model = model;
            this.Manufacturer = manufacturer;

            this.price = null;
            this.owner = null;
            this.batteryCharacteristics = new Battery();
            this.displayCharacteristics = new Display();
        }