Exemplo n.º 1
0
 public GSM(string model, string manufacturer)
 {
     this.model = model;
     this.manufacturer = manufacturer;
     this.batteryCharacteristics = new Battery();
     this.displayCharacteristics = new Display();
 }
Exemplo n.º 2
0
 public GSM(string model, string manufacturer, double price, string owner, Battery battery, Display display)
 {
     this.model = model;
     this.manufacturer = manufacturer;
     this.price = price;
     this.owner = owner;
     this.batteryCharacteristics = battery;
     this.displayCharacteristics = display;
 }
Exemplo n.º 3
0
 public GSM(string model, string manufacturer, double price, string owner)
 {
     this.model = model;
     this.manufacturer = manufacturer;
     this.price = price;
     this.owner = owner;
     this.batteryCharacteristics = new Battery();
     this.displayCharacteristics = new Display();
 }
 static void Main()
 {
     Battery battery = new Battery("aaa", "bbbb", 3, 4);
     Console.WriteLine(battery.BatType);
 }