static void Main() { Laptop lenovo = new Laptop("Lenovo Yoga 2 Pro", "Lenovo", "Intel Core i5-4210U", "8 GB", "Intel HD Graphics 4400", "128GB SSD", "13.3\"(33.78 cm) – 3200 x 1800 (QHD)", new Battery(Battery.BatteryType.LiIon, 4, 2550), 4.5, 2259); Console.WriteLine(lenovo); Laptop acer = new Laptop("Acer Aspire V5", 1699); Console.WriteLine(acer); }
static void Main(string[] args) { Laptop laptop = new Laptop("Lenovo Yoga 2 Pro", 2259.00m, new Battery("Li-Ion, 4-cells, 2550 mAh", 4.5)); laptop.Manufacturer = "Lenovo"; laptop.Processor = "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)"; laptop.Ram = 8; laptop.GraphicCard = "Intel HD Graphics 4400"; laptop.HDD = 128; laptop.Screen = @"13.3"" (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display"; Console.WriteLine(laptop); }
static void Main(string[] args) { var baterry1=new Battery("Li-ion",12,3000,4.5f); var simpleLaptop=new Laptop("Dell XPS L502x",2550.50m); Console.WriteLine(simpleLaptop); var laptop = new Laptop("Lenovo Yoga 2 Pro", 869.88m, "Lenovo", "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)", "8 GB", "128GB SSD", "Intel HD Graphics 4400", "13.3\" (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display", baterry1); Console.WriteLine(laptop); var laptop1 = new Laptop("Dell Lattude", 1567.4366m, battery: baterry1, processor: "i7 3.2 GHz", ram: "16 GB"); Console.WriteLine(laptop1); }
public static void Main(string[] args) { Laptop laptop = new Laptop( "Lenovo Yoga 2 Pro", "Lenovo", "Intel Core i5-4210U", "8 GB", "Intel HD Graphics 4400", "128GB SSD", "13.3\"(33.78 cm) – 3200 x 1800 (QHD)", new Battery(4, 2550, BatteryType.LiIon), 4.5, 2259M); Laptop laptop2 = new Laptop("Acer Aspire V5", 1699M); Console.WriteLine(laptop); Console.WriteLine(laptop2); }
static void Main() { Laptop lenovo = new Laptop("Lenovo Yoga", 3000, new Battery("Nqkakva", 2), "Lenovo", "Intel", 5, "NVIDIA", "", "Full HD"); Console.WriteLine(lenovo); }