コード例 #1
0
        static void Main()
        {
            Battery myBattery = new Battery("8-cell Original", 4.5);
            Laptop myNetbook = new Laptop("IdeaPad", "Lenovo", "Intel Core i7", "8GB DDR3", "Radeon", "256GB SSD", myBattery, "15.7\" LED", 1070.85m);
            Console.WriteLine(myNetbook);

            Console.WriteLine();

            Laptop myNetbook1 = new Laptop("ThinkPad", 1602.10m);
            Console.WriteLine(myNetbook1);
        }
コード例 #2
0
ファイル: Laptop.cs プロジェクト: reminchev/SoftUni-Projects
 public Laptop(string model, string manufacturer, string processor, string ram,
     string graphicsCard, string hdd, Battery battery, string screen, decimal price)
 {
     this.Model = model;
     this.Manufacturer = manufacturer;
     this.Processor = processor;
     this.Ram = ram;
     this.GraphicsCard = graphicsCard;
     this.Hdd = hdd;
     this.Battery = battery;
     this.Screen = screen;
     this.Price = price;
 }