Example #1
0
 static void Main(string[] args)
 {
     Laptop laftop = new Laptop("HP 250 G2", 999);
     Console.WriteLine(laftop);
     Battery batt=new Battery("Li-Ion, 4-cells, 2550 mAh",4.5);
     Laptop laftop1 = new Laptop("Lenovo Yoga 2 Pro", "Lenovo", "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)", 8
         , "Intel HD Graphics 4400", "128GB SSD", "13.3\"(33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display", batt, 2259);
     Console.WriteLine(laftop1);
     Laptop laptop2 = new Laptop("Lenovo Yoga pro 3", 1200);
 }
Example #2
0
 public Laptop(string model, string manifacture, string proccesor,
     int? ram, string graphic, string hdd, string screen, Battery battery, decimal price)
 {
     this.Model = model;
     this.Manifacture = manifacture;
     this.Proccesor = proccesor;
     this.Ram = ram;
     this.GraphicCard = graphic;
     this.Hdd = hdd;
     this.screen = screen;
     this.Battery = battery;
     this.Price = price;
 }