コード例 #1
0
ファイル: Computer.cs プロジェクト: re1nor/kai_oop_computer
 // Создаем конструктор
 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;
 }
コード例 #2
0
 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");
 }
コード例 #3
0
ファイル: Game.cs プロジェクト: re1nor/kai_oop_computer
 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");
 }