Esempio n. 1
0
        static void Main(string[] args)
        {

            Laptop laptop = new Laptop("Lenovo Yoga 2 Pro", 200m);
            Console.WriteLine(laptop);

            Laptop laptop1 = new Laptop("Lenovo Yoga 2 Pro", 2000m, "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",
                "Li-Ion, 4-cells, 2550 mAh", 4.5);

            Console.WriteLine(laptop1);

            Console.WriteLine();

            Battery battery = new Battery("Li-Ion, 4-cells, 2550 mAh", 4.5);
            Laptop laptop2 = new Laptop("Lenovo Yoga 2 Pro", 200m, null, null, null, null, null, null, battery);
            Console.WriteLine(laptop2);

            Console.WriteLine();
            Battery battery2 = new Battery("Li-Ion, 4-cells, 2550 mAh");
            Laptop laptop3 = new Laptop("Acer 2013l", 3000m, "acer", null, null, null, null, null, battery2);
            Console.WriteLine(laptop3);


        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     Console.WriteLine("Laptop model: ");
     string model = Console.ReadLine();
     Console.WriteLine("Manufacturer: ");
     string manifacturer = Console.ReadLine();
     Console.WriteLine("Processor: ");
     string processor = Console.ReadLine();
     Console.WriteLine("RAM: ");
     string ram = Console.ReadLine();
     Console.WriteLine("Graphic card: ");
     string card = Console.ReadLine();
     Console.WriteLine("HDD: ");
     string hdd = Console.ReadLine();
     Console.WriteLine("Screen: ");
     string screen = Console.ReadLine();
     Console.WriteLine("Battery type: ");
     string batType = Console.ReadLine();
     Console.WriteLine("Battery life: ");
     double batLife = double.Parse(Console.ReadLine());
     Battery battery = new Battery(batType, batLife);
     Console.WriteLine("Price: ");
     decimal price = decimal.Parse(Console.ReadLine());
     Laptop laptop = new Laptop(model, manifacturer, processor, ram, card, hdd, screen, battery, price);
     Console.WriteLine(laptop);
     Console.WriteLine(battery);
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Console.OutputEncoding = Encoding.UTF8;

            Battery batteryExample1 = new Battery ("6-клетъчна");
            Battery batteryExample2 = new Battery ("Ni-Cd", (float)4.5);

            Laptop laptopExample1 = new Laptop("ASUS N56JN-CN047D", 1899m);
            Laptop laptopExample2 = new Laptop(
                "ASUS N56JN-CN047D",
                1899m,
                "ASUS",
                "Intel Core i7-4700HQ (4-ядрен, 2.40 - 3.40 GHz, 6MB кеш)",
                "12GB (1x 8192MB + 1x 4096MB) - DDR3, 1600Mhz",
                "NVIDIA GeForce 840M (2GB DDR3)",
                "870GB (120GB SSD + 750GB HDD (7200 оборотa/минута))",
                "15.6-инчов (39.62 см.) - 1920x1080 (Full HD), матов",
                batteryExample2
                );

            Laptop laptopExample3 = new Laptop(model: "ASUS N56JN-CN047D", price: 2000m, graphicsCard: "NVIDIA GeForce 840M (2GB DDR3)");

            Console.WriteLine(laptopExample1.ToString());
            Console.WriteLine();
            Console.WriteLine(laptopExample2.ToString());
            Console.WriteLine();
            Console.WriteLine(laptopExample3.ToString());
        }
Esempio n. 4
0
 public static void Main()
 {
     Battery battery = new Battery(130, BatteryType.LiPo);
     Laptop laptop = new Laptop("Galaxy S5", "Samsung", "Snapdragon", "Quadra", battery, 5.5, 800);
     Console.WriteLine(laptop);
     Console.ReadKey();
 }
Esempio n. 5
0
        public static void Main()
        {
            Laptop myLaptop = new Laptop("G500", new Battery("Varta"));
            Laptop hisLaptop = new Laptop("G600", 1222.00m);

            Console.WriteLine(hisLaptop);
        }
        static void Main(string[] args)
        {
            Battery sampleBat = new Battery("Li-Ion, 4-cells, 2550 mAh", 4.5);
            Laptop sampleInfo = new Laptop("Lenovo Yoga 2 Pro", 2259.00);
            Laptop middleInfo = 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", 2259.00, sampleBat);
            Laptop fullInfo = 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 inch (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display ", 2259.00, sampleBat);

            Console.WriteLine("If you want to see  info only for model and price press 1 and then enter");
            Console.WriteLine("If you want see full info press 2 and then enter");
            Console.WriteLine("If you want see info without hdd and screen press 3 and then enter");

            string input = Console.ReadLine();

            switch(input)
            {
                case "1":
                    Console.WriteLine(sampleInfo.ToString());
                    break;
                case "2":
                    Console.WriteLine(fullInfo.ToString());
                    break;
                case "3":
                    Console.WriteLine(middleInfo.ToString());
                    break;
                default:
                    Console.WriteLine("you cannot choice other variants");
                    break;
            }
        }
Esempio n. 7
0
 static void Main()
 {
     Battery lion = new Battery("lion", 5);
     Laptop firstLaptop = new Laptop("Lenovo-Yoga", "Lenovo", "Dual core 2 Duo", "8GB", "G-Force", "1TB", "21 inch", lion, 1000);
     Laptop secondLaptop = new Laptop("Hp-Aspire", 1000);
     Console.WriteLine(firstLaptop);
     Console.WriteLine(secondLaptop);
 }
Esempio n. 8
0
        static void Main(string[] args)
        {
            Laptop laptop = new Laptop("Asus", 2.44m, new Battery("Samsung", "2400 hours"));
            laptop.Card = "Nvidia";
            laptop.Screen = "19inch HD ";

            Console.WriteLine(laptop);
        }
Esempio n. 9
0
        static void Main()
        {
            Laptop lenovoYoga = 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",
                new Battery("Li-Ion, 4-cells, 2550 mAh" , 4.5), 699.00m);

            Laptop hpLaptop = new Laptop("HP 250 G2" , 699.00m);

            Console.WriteLine(lenovoYoga);
            Console.WriteLine(hpLaptop);
        }
Esempio n. 10
0
        static void Main()
        {
            Laptop laptop = new Laptop("HP 250 G2", 699.00m);
            Console.WriteLine(laptop.ToString());

            Laptop laptop2 = new Laptop("Lenovo Yoga 2 Pro", "Lenovo", "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)", 8, "ntel HD Graphics 4400", "128GB SSD", "13.3\"(33.78 cm) – 3200 x 1800(QHD +), IPS sensor display", "Li-Ion, 4-cells, 2550 mAh", 4.5, 2259.00m);
            Console.WriteLine(laptop2.ToString());

            Laptop laptop3 = new Laptop("PRO", "8-core, 5 GHz", 32, "100 TB", 10000.00m);
            Console.WriteLine(laptop3.ToString());
        }
Esempio n. 11
0
		public static void Main(string[] args)
		{
			Laptop fullLaptop = new	Laptop("Lenovo Yoga 2 Pro", 2259.00m,
"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", 4.5d,
new Battery("Li-Ion", 4, 2550 ));
			
			Laptop simpleLaptop = new Laptop("HP 250 G2", 699.00m);
			
			Console.WriteLine(fullLaptop);
			Console.WriteLine();			
			Console.WriteLine(simpleLaptop);
		}
Esempio n. 12
0
        static void Main(string[] args)
        {
            Battery lion = new Battery("Li-Ion, 4-cells, 2550 mAh");
            Battery nicd = new Battery("Ni-Cd", (float)4.5);
            Laptop lpt_first = new Laptop("Lenovo Yoga 2 Pro", (decimal)869.88, "Lenovo", "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)", "8 GB", "128GB SSD", "Intel HD Graphics 4400",lion, "13.3\" (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display");
            Laptop lpt_second = new Laptop("Aspire E3-111-C5GL",  (decimal)259.49);
            Laptop lpt_third = new Laptop("Acer some model", (decimal)1567.43,battery:nicd,processor:"3.2 GHz", ram:"16 GB");

            Console.WriteLine(lpt_first.ToString());
            Console.WriteLine();
            Console.WriteLine(lpt_second.ToString());
            Console.WriteLine();
            Console.WriteLine(lpt_third.ToString());
        }
Esempio n. 13
0
 static void Main()
 {
     Laptop myLaptop = new Laptop("Lenovo 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",
              "Li-Ion, 4-cells, 2550 mAh", 4.5, 2259);
     Laptop otherLaptop = new Laptop("Lenovo Yoga", 21.123);
     Laptop yetAnOther = new Laptop("ACER Aspire", "Acer", "Good", 123.1);
     Console.WriteLine(myLaptop);
     Console.WriteLine();
     Console.WriteLine(otherLaptop);
     Console.WriteLine();
     Console.WriteLine(yetAnOther);
     Console.WriteLine();
 }
        static void Main()
        {
            var laptops = new List<Laptop>();

            var acerAspire = new Laptop(
                "VN7-591G", // Model
                "Acer Aspire", // Manufacturer
                "Intel Core i7-4710HQ", // Processor
                "NVIDIA GeForce GTX 860M", // Graphics card
                "8 cells", // Battery
                4, // Battery life in hours
                15.6, // Screen size
                1959 // Price in leva
            );

            Laptop lenovo = new Laptop(
                "IdeaPad G510",
                "Lenovo",
                "Intel Core i5-4200M",
                "AMD Radeon R5 M230",
                "6 cells",
                5,
                15.6,
                1049.90m
            );

            Laptop toshiba = new Laptop(
                "Satellite L50-B-16C ",
                "Toshiba",
                "Intel Core i7-4710HQ",
                "NVIDIA GeForce GTX 860M",
                "4 cells",
                4,
                15.6,
                1959
            );

            Laptop hp = new Laptop("HP 250 G2", 699);

            laptops = new List<Laptop>() { acerAspire, lenovo, toshiba, hp };

            foreach (var laptop in laptops)
            {
                Console.WriteLine(laptop.ToString());
                Console.WriteLine();
            }
        }
Esempio n. 15
0
 static void Main(string[] args)
 {
     Laptop one = new Laptop(
         "Lenovo Yoga 2 Pro",
         2259.0042342m,
         "Lenovo",
         "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)",
         "8GB",
         "Intel HD Graphics 4400",
         "128GB SSD",
         "13.3\" (33.78 cm) – 3200 x 1800 (QHD+) IPS sensor display");
     Laptop two = new Laptop("Dell", 99.99m);
     one.BatterySet = new Battery("Corsair", "34235");
     Console.WriteLine(one);
     Console.WriteLine();
     Console.WriteLine(two);
 }
Esempio n. 16
0
        static void Main()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            BatteryOptions lenovoBattery = new BatteryOptions("Li-Ion, 4-cells, 2550 mAh", 4.5);

            Laptop firstPC = new Laptop("Lenovo Yoga 2 Pro", 2259m,"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", lenovoBattery);

            Laptop secoundPC = new Laptop("HP 250 G2", 699.00m);

            Laptop thirdPC = new Laptop("Lenovo Yoga 2 Pro", 2259m,"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");

            Console.WriteLine(firstPC);
            Console.WriteLine(secoundPC);
            Console.WriteLine(thirdPC);
        }
        public static void Main()
        {
            Laptop firstLaptop = new Laptop("Latitude", LaptopManufacturers.Dell, 3000, 3500, 4.5, "i7 QM", "8GB", "N-VIDIA", "SSD 128GB", "15.4\"", "Lit-Ion,6cells");

            Console.WriteLine(firstLaptop);

            var secondLAptop = new Laptop("Satellite", LaptopManufacturers.Toshiba, 800, "i3", "4GB", "N-VIDIA", "HDD 320GB", "15.4\"");

            // method for battery adding
            secondLAptop.AddBattery(2500, 1.5, "Lit-Ion,3cells");

            Console.WriteLine(new string('=', 30));

            Console.WriteLine(secondLAptop);

            var thirdLaptop = new Laptop("Aspire", 1200, LaptopManufacturers.Acer);

            Console.WriteLine(thirdLaptop);
        }
Esempio n. 18
0
        public static void Main(string[] args)
        {
            var laptopMake       = "Asus";
            var laptopModel      = "Hjk45";
            var laptopDiplaySize = 15.4;
            var laptopPrice      = 333;
            var laptopRam        = 8;
            var laptopSsd        = 15;

            var laptop = new Laptop(laptopMake, laptopModel, laptopDiplaySize, laptopPrice, laptopRam, laptopSsd);

            //var laptopInfo = laptop.FullInfo();

            //Console.WriteLine(laptopInfo);

            var shop = new Shop();

            shop.AddLaptop(laptop);

            shop.PrintAllLaptops(x => Console.WriteLine(x.FullInfo()));
        }
Esempio n. 19
0
        public static void Main(string[] args)
        {
            Laptop lenovo = new Laptop("HP 250 G2", 649);
            Console.WriteLine(lenovo);

            Console.WriteLine();

            var battery = new Battery(4.5, "Li-Ion, 4-cells, 2550 mAh");
            Laptop siemens = new Laptop(
                           "Lenovo",
                           "Lenovo Yoga 2 Pro", 
                           2259,
                           "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)",
                           "Intel HD Graphics 4400",
                           "8 GB",
                           "128GB SSD",
                           "13.3\" (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display",
                           battery);

            Console.WriteLine(siemens);
        }
Esempio n. 20
0
        static void Main()
        {
            Laptop example1 = new Laptop("Lenovo", 2999, new Battery("Li-Ion", 1), "Lenovo", "Intel", 4, "Nvidia", "", "Full HD");

            Laptop example2 = new Laptop("HP", 899.99);

            Laptop example3 = new Laptop("Toshiba", 2312.21, new Battery("SomeOne", 20), "Toshiba", "Intel", 4, "Nvidia", "400GB SATA", "19 inch");


            Battery battery = new Battery("Li-IOn", 4);

            example2.AddBattery(battery);

            Laptop temp3 = new Laptop("HP 500", 1499.99, new Battery("Li", 2), "HP");

            Console.WriteLine(example1);
            Console.WriteLine();
            Console.WriteLine(example2);
            Console.WriteLine();
            Console.WriteLine(example3);
        }
Esempio n. 21
0
        public static void Main(string[] args)
        {
            Laptop lenovo = new Laptop("HP 250 G2", 649);

            Console.WriteLine(lenovo);

            Console.WriteLine();

            var    battery = new Battery(4.5, "Li-Ion, 4-cells, 2550 mAh");
            Laptop siemens = new Laptop(
                "Lenovo",
                "Lenovo Yoga 2 Pro",
                2259,
                "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)",
                "Intel HD Graphics 4400",
                "8 GB",
                "128GB SSD",
                "13.3\" (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display",
                battery);

            Console.WriteLine(siemens);
        }
Esempio n. 22
0
        public bool RemoveLaptop(Laptop laptop)
        {
            IfnullThrowExpetion(laptop);

            if (!this.laptops.ContainsKey(laptop.Make))
            {
                return(false);
            }

            if (!this.laptops[laptop.Make].Contains(laptop))
            {
                return(false);
            }

            bool isRemove = this.laptops[laptop.Make].Remove(laptop);

            if (this.laptops[laptop.Make].Count == 0)
            {
                isRemove = this.laptops.Remove(laptop.Make);
            }
            return(isRemove);
        }
Esempio n. 23
0
        public bool RemoveLaptop(Laptop laptop)
        {
            IfNullThrowExeption(laptop);

            if (!laptops.ContainsKey(laptop.Make))
            {
                return(false);
            }

            if (!laptops[laptop.Make].Contains(laptop))
            {
                return(false);
            }

            var isRemove = laptops[laptop.Make].Remove(laptop);

            if (laptops[laptop.Make].Count == 0)
            {
                isRemove = laptops.Remove(laptop.Make);
            }

            return(isRemove);
        }
Esempio n. 24
0
        public bool RemoveLaptop(Laptop laptop)
        {
            IfNullThrowException(laptop);

            if (!laptopsDictionary.ContainsKey(laptop.Make))
            {
                return(false);
            }

            if (!laptopsDictionary[laptop.Make].Contains(laptop))
            {
                return(false);
            }

            laptopsDictionary[laptop.Make].Remove(laptop);

            if (laptopsDictionary[laptop.Make].Count == 0)
            {
                laptopsDictionary.Remove(laptop.Make);
            }

            return(true);
        }
Esempio n. 25
0
        public static void Main(string[] args)
        {
            string  laptopName        = "ASUS";
            string  laptopModel       = "Rog HV34123";
            double  laptopDisplaySize = 15.3;
            decimal laptopPrice       = 333;
            int     laptopRam         = 32;
            int     laptopSsd         = 256;

            Laptop laptop =
                new Laptop(laptopName, laptopModel, laptopDisplaySize, laptopPrice, laptopRam, laptopSsd);

            var laptopInfo = laptop.FullInfo();



            var shop = new Shop();

            shop.AddLaptop(laptop);
            shop.AddLaptop(laptop);

            Console.WriteLine(shop.Count);
        }
Esempio n. 26
0
        static void Main(string[] args)
        {
            Console.WriteLine("Laptop model: ");
            string model = Console.ReadLine();

            Console.WriteLine("Manufacturer: ");
            string manifacturer = Console.ReadLine();

            Console.WriteLine("Processor: ");
            string processor = Console.ReadLine();

            Console.WriteLine("RAM: ");
            string ram = Console.ReadLine();

            Console.WriteLine("Graphic card: ");
            string card = Console.ReadLine();

            Console.WriteLine("HDD: ");
            string hdd = Console.ReadLine();

            Console.WriteLine("Screen: ");
            string screen = Console.ReadLine();

            Console.WriteLine("Battery type: ");
            string batType = Console.ReadLine();

            Console.WriteLine("Battery life: ");
            double  batLife = double.Parse(Console.ReadLine());
            Battery battery = new Battery(batType, batLife);

            Console.WriteLine("Price: ");
            decimal price  = decimal.Parse(Console.ReadLine());
            Laptop  laptop = new Laptop(model, manifacturer, processor, ram, card, hdd, screen, battery, price);

            Console.WriteLine(laptop);
            Console.WriteLine(battery);
        }
Esempio n. 27
0
        public static void Main()
        {
            Laptop lenovo = new Laptop("Lenovo Ideapad y510p", 1749);

            Console.WriteLine(lenovo);
        }
Esempio n. 28
0
        private static void Main()
        {
            Laptop firstLaptop = 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",
                    128,
                    "13.3\" (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display",
                    new Battery("Li-Ion, 4-cells, 2550 mAh", 4.5),
                    2259.00m
                );

            //Laptop secondLaptop = new Laptop("HP 250 G2", 699.00m);

            //Laptop thirdLaptop = new Laptop
            //    (
            //        "Lenovo W540",
            //        "Lenovo",
            //        "Intel Core i7-4900MQ (2.80GHz)",
            //        8,
            //        "Nvidia Quadro K2100M",
            //        512,
            //        "15.5\" 2880 x 1620 Wide viewing angle & High density display",
            //        4129.00m
            //    );

            Console.WriteLine(firstLaptop);

            //Laptop[] someLaptops = new Laptop[] {firstLaptop, secondLaptop, thirdLaptop};

            //foreach (var VARIABLE in someLaptops)
            //{
            //    Console.WriteLine(VARIABLE);
            //    Console.WriteLine("<--------------------------------------------------------------------->");
            //}
        }
Esempio n. 29
0
        static void Main()
        {
            Laptop laptop = new Laptop("Acer 21", 1244.12, "asd", "asd");

            Console.WriteLine(laptop.ToString());
        }
Esempio n. 30
0
        static void Main()
        {
            Battery lion = new Battery("Li-Ion, 4-cells, 2550 mAh");
            Battery nimh = new Battery("Ni-Mh", 4.5f);
            Laptop lapFirst = new Laptop("HP 250 G2", 699.00m);
            Laptop lapSecond = new Laptop("Lenovo Yoga 2 Pro", 2259.00m, "Lenovo",
                    "Intel Core i5-4210U (2-core, 1.70 - 2.70 GHz, 3MB cache)", "8 GB", "128GB SSD", 
                    "Intel HD Graphics 4400", lion, "13.3\" (33.78 cm) – 3200 x 1800 (QHD+), IPS sensor display");
            Laptop thirdLap = new Laptop("Dell model", 1523.95m, battery: nimh, processor: "3.2GHz", ram: "4GB");

            Console.WriteLine(lapFirst.ToString());
            Console.WriteLine();
            Console.WriteLine(lapSecond.ToString());
            Console.WriteLine();
            Console.WriteLine(thirdLap.ToString());
        }
Esempio n. 31
0
        static void Main()
        {
            Laptop lenovoYoga2Pro = new Laptop("Lenovo Yoga 2 Pro", 2259.0m, "Lenovo", "Intel Core i3", "Intel HD  Graphics 4400", new Battery("4 cell", 4.5), "13.3");

            Console.WriteLine(lenovoYoga2Pro);
        }
Esempio n. 32
0
 public static void Main(string[] args)
 {
     Laptop hp = new Laptop("HP G2", 699.99);
     Console.WriteLine(hp);
 }
Esempio n. 33
0
 static void Main(string[] args)
 {
     var laptop = new Laptop("Acer", 1500, battery: new Battery("LI-ION", 4, 2500, 4));
     Console.WriteLine(laptop);
 }
Esempio n. 34
0
        static void Main(string[] args)
        {
            var laptop = new Laptop("Acer", 1500, battery: new Battery("LI-ION", 4, 2500, 4));

            Console.WriteLine(laptop);
        }
Esempio n. 35
0
 static void Main(string[] args)
 {
     Laptop p = new Laptop("HP 250 G2", 1834.44, "hp", "AMD", 0, "Nvidia", 0, null, new Battery("fsdfs", 2));
     Laptop test = new Laptop("Dell", 493, null, "AMD", 12, "fdsfdas", 0, null, new Battery("fdss"));
     Console.WriteLine(p);
     Console.WriteLine(test);
 }