Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Laptop hp = new Laptop("HP 250 G2", 699.00);

            Laptop asus = new Laptop(
                "Asus N551JX-CN102D",
                "Asus",
                "Intel Core i5-4200H (2.80 - 3.40 GHz, 3 MB cache)",
                "4 GB + 4 GB DDR3L 1600MHz (Low Voltage)",
                "NVIDIA GeForce GTX 950M - 2 GB DDR3",
                "1 TB SATA 5400 rpm",
                @"15.6"" 16:9 Full HD (1920x1080), IPS, Non-Glare LCD Panel",
                new Battery("Li-Ion, 6-cells, 5200 mAh, 56 Wh", 4.5),
                1649.00);

            Laptop lenovo = new Laptop(
                "Lenovo Yoga 2 Pro",
                "Lenovo",
                "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)",
                "8 GB",
                "Intel HD Graphics 4400",
                "128GB SSD",
                @"13.3""(33.78 cm) – 3200 x 1800(QHD +), IPS sensor display",
                2259.00);

            Console.WriteLine(hp);
            Console.WriteLine();

            Console.WriteLine(asus);
            Console.WriteLine();

            Console.WriteLine(lenovo);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Battery lion = new Battery("Li-Ion, 4 Cells, 10.8 Volt");
            Battery hp = new Battery("HP Compaq, 6 Cells", (float)4.2);
            Laptop laptop1 = new Laptop("Lenovo Yoga 2 Pro", (decimal)2259.00, "Lenovo", "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)", 8,
                "Intel HD Graphics 4400", 128, lion, "13.3\" (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display");
            Laptop laptop2 = new Laptop("HP 250 G2", (decimal)699.00);

            Console.WriteLine(laptop1.ToString());
            Console.WriteLine();
            Console.WriteLine(laptop2.ToString());
        }
Ejemplo n.º 3
0
        static void Main()
        {
            var gosho = new Laptop("gosho", 999, "procesorche", "bateriika", 50);

            Console.WriteLine(gosho);
        }