protected Desktop(ICpu cpu, IMotherBoard motherBoard, IVideoCard videoCard) { _cpu = cpu; _motherBoard = motherBoard; _videoCard = videoCard; }
public GamingDesktop(ICpu cpu, IMotherBoard motherBoard, IVideoCard videoCard) : base(cpu, motherBoard, videoCard) { }
public OfficeDesktop(ICpu cpu, IMotherBoard motherBoard, IVideoCard videoCard) : base(cpu, motherBoard, videoCard) { }
protected PersonalComputer(IMotherBoard motherBoard, IMemory memory, ICpu cpu) { MotherBoard = motherBoard; Memory = memory; Cpu = cpu; }
public MyPc(IMotherBoard motherBoard, IMemory memory, ICpu cpu) : base(motherBoard, memory, cpu) { }
public MateBook(IKeyboard keyboard, IMotherBoard motherBoard) { Console.WriteLine($"{this.GetType().Name}通过两个参数构造函数被创建..."); }