コード例 #1
0
        static void Main()
        {
            Battery battery = new Battery();

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

            GSM gsm = new GSM("Lumia", "Nokia", -2, "Pesho");
        }
コード例 #2
0
ファイル: GSM.cs プロジェクト: iliantova/Telerik-Homework
 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;
 }