Change Lesson 3 Task 1 to fix warnings

This commit is contained in:
Stanislav Mykhailenko 2023-03-23 13:56:49 +02:00
parent 60f5d40b8d
commit d8f06e1e8b
GPG key ID: 1E95E66A9C9D6A36
6 changed files with 23 additions and 23 deletions

View file

@ -2,7 +2,7 @@ namespace Classes;
class Cpu : Detail
{
public string Socket { get; set; }
public int Cores { get; set; }
public int Frequency { get; set; }
public required string Socket { get; set; }
public required int Cores { get; set; }
public required int Frequency { get; set; }
}

View file

@ -2,8 +2,8 @@ namespace Classes;
class Detail
{
public int Price { get; set; }
public string Supplier { get; set; }
public string Country { get; set; }
public string Name { get; set; }
public required int Price { get; set; }
public required string Supplier { get; set; }
public required string Country { get; set; }
public required string Name { get; set; }
}

View file

@ -2,8 +2,8 @@ namespace Classes;
class Drive : Detail
{
public int Size { get; set; }
public int Speed { get; set; }
public string Interface { get; set; }
public required int Size { get; set; }
public required int Speed { get; set; }
public required string Interface { get; set; }
public int? Lifetime { get; set; }
}

View file

@ -2,6 +2,6 @@ namespace Classes;
class Gpu : Detail
{
public int Memory { get; set; }
public int Speed { get; set; }
public required int Memory { get; set; }
public required int Speed { get; set; }
}

View file

@ -2,14 +2,14 @@ namespace Classes;
class Motherboard : Detail
{
public string RamType { get; set; }
public int RamSlots { get; set; }
public int UsedRamSlots {get; set; }
public string Socket { get; set; }
public int CpuSlots {get; set; }
public int UsedCpuSlots {get; set; }
public int PataSlots { get; set; }
public required string RamType { get; set; }
public required int RamSlots { get; set; }
public int UsedRamSlots { get; set; }
public required string Socket { get; set; }
public required int CpuSlots { get; set; }
public int UsedCpuSlots { get; set; }
public required int PataSlots { get; set; }
public int UsedPataSlots {get; set; }
public int SataSlots { get; set; }
public int UsedSataSlots {get; set; }
public required int SataSlots { get; set; }
public int UsedSataSlots { get; set; }
}

View file

@ -2,6 +2,6 @@ namespace Classes;
class Ram : Detail
{
public string Type { get; set; }
public int Size { get; set; }
public required string Type { get; set; }
public required int Size { get; set; }
}