Example #1
0
        static void Main()
        {
            var firstLaptop = new Laptop("Lenovo yoga 2 pro", 541.2531);
            var asd = new Laptop("Lenovo Yoga 2 Pro", "Lenovo", "intel", 4, "nvidia", "ssd", "ips", new Battery("Li-Ion, 4-cells, 2550 mAh", 4.5), 4000);

            Console.WriteLine(firstLaptop);
        }
Example #2
0
        static void Main()
        {
            Laptop laptop1 = new Laptop("G510", 745.32m);
            WriteLine(laptop1);

            Laptop laptop2 = new Laptop("s50", "Lenovo", 899.55m, "Intel core i5");
            WriteLine(laptop2);

            Laptop laptop3 = new Laptop("F550", "Acer", "Intel core i3", "8 GB", 
                "Nvidia GeForce 2GB", "1000GB", "15.6\"", 1000.32m, new Battery("Li-ion", 6));
            WriteLine(laptop3);
        }