Esempio n. 1
0
 public GSM(string model, string manufacturer, double? price, string owner, Battery battery, Display display)
     : this(model, manufacturer, owner)
 {
     this.Price = price;  //property
     this.Battery = battery; //property
     this.Display = display; //property
 }
Esempio n. 2
0
        static void Main()
        {
            GSMBattery nokiaBattery = new GSMBattery("BL-5BT",6);

            //nokiaBattery.BatteryModel = "BL-5BT";
            //nokiaBattery.HoursTalk = 6;
            //nokiaBattery.HoursIdle = 24;

            Display display = new Display();

            display.Size = 3;
            display.Colors = 4096;

            GSM nokia = new GSM("3310", "Nokia", 350);

            nokia.Battery = nokiaBattery;
            nokia.Display = display;

            //nokia.Owner = "Ivo";

            //nokia.Price = 350;
            //Console.WriteLine(nokia.Battery.Type);

            nokia.GSMInfo(nokia);
            //Console.WriteLine("Manifacturer: {0}", nokia.Manufacturer);
            //Console.WriteLine("Model: {0}",nokia.Model);
            //Console.WriteLine("Price: {0}lv",nokia.Price);
            //Console.WriteLine("Owner: {0}",nokia.Owner);
            //Console.WriteLine("Battery Characteristics:\n"+"Model: "+nokia.Battery.BatteryModel+"\n"+
            //    "Hours Talk: "+nokia.Battery.HoursTalk + "\n" +"Hours Idle: "+nokia.Battery.HoursIdle);
            //Console.WriteLine("Display Characteristics:\n"+ "Size: " + nokia.Display.Size +"\n"+
            //    "Colors: "+nokia.Display.Colors);
        }
Esempio n. 3
0
 //Constructors
 public GSM(string model, string manufacturer, Battery battery, Display display)
 {
     this.Model = model;
     this.Manufacturer = manufacturer;
     this.Battery = battery;
     this.Display = display;
     this.CallHistory = new List<Calls>();
 }
 public GSM(string model, string manifacturer, decimal? price, string owner, Battery battery, Display display)
 {
     this.Model = model;
     this.Manifacturer = manifacturer;
     this.Price = price;
     this.Owner = owner;
     this.Battery = battery;
     this.Display = display;
     this.callsList = new List<Call>();
 }
Esempio n. 5
0
 public GSM(string model, string manufacturer)
 {
     this.model = model;
     this.manufacturer = manufacturer;
     this.price = 0;
     this.owner = null;
     this.battery = null;
     this.display = null;
     iPhone = new IPhone4S("black");
     this.call = null;
 }
Esempio n. 6
0
        public GSM(string model, string manufact)
        {
            this.Model = model;

            this.Manufacturer = manufact;

            this.Price = null;

            this.Owner = null;

            this.Battery = null;

            this.Display = null;

            this.callHistory = new List<Call>();

        }
Esempio n. 7
0
 public GSM(string model, string manufacturer, decimal price, string owner, Battery battery, Display display)
     : this(model, manufacturer, price, battery, display)
 {
     this.Owner = owner;
     this.CallHistory = new List<Calls>();
 }
Esempio n. 8
0
        public GSM(string model, string manufact, decimal price, string owner)
        {
            this.Model = model;

            this.Manufacturer = manufact;

            this.Price = price;

            this.Owner = owner;

            this.Battery = null;

            this.Display = null;

            this.callHistory = new List<Call>();

        }