コード例 #1
0
        public ILaptop CreateLaptop(string model)
        {
            var laptop = new AsusLaptop {
                Model = model
            };

            laptop.Create();
            return(laptop);
        }
コード例 #2
0
        public override Laptop ManufactureLaptop()
        {
            var laptop = new AsusLaptop("Asus mouse", 6, 2048, 512, HardDriveType.HardDiskDrive, ProcessorType.AMD, 2, 700d);

            return laptop;
        }