// Создаем конструктор public Computer(string Maker, TypeProcessor Processor, int ram, TypeDrive Drive) { this.Maker = Maker; this.Processor = Processor; this.ram = ram; this.Drive = Drive; ID++; Id_comp = ID; }
public Notebook(string Maker, TypeProcessor Processor, int ram, TypeDrive Drive, double Diagonal, double Duration) : base(Maker, Processor, ram, Drive) { this.Diagonal = Diagonal; this.Duration = Duration; Console.WriteLine($"Maker:{Maker}/ Processor: {Processor}/ Ram: {ram}gb/ Drive: {Drive}/Diagonal: {Diagonal}/ Duration: {Duration} hours"); }
public Game(string Maker, TypeProcessor Processor, int ram, TypeDrive Drive, TypeVideocard Videocard, double Power) : base(Maker, Processor, ram, Drive) { this.Videocard = Videocard; this.Power = Power; Console.WriteLine($"Maker:{Maker}/ Processor: {Processor}/ Ram: {ram}gb/ Drive: {Drive}/Videocard: {Videocard}/ Power: {Power} tflops"); }