static void Main()
        {
            Battery battery = new Battery();

            //battery.HoursIdle = -2;
            Console.WriteLine(battery.HoursIdle);

            GSM gsm = new GSM("Lumia", "Nokia", -2, "Pesho");
        }
Esempio n. 2
0
 public GSM(string model, string manufacturer, double price, string owner, Battery battery, Display display)
 {
     this.MODEL = model;
     this.MANIFACTURER = manufacturer;
     this.PRICE = price;
     this.OWNER = owner;
     this.BATTERYCHARACTERISTICS = battery;
     this.DISPLAYCHARACTERISTICS = display;
 }