Created
December 2, 2025 18:04
-
-
Save sunmeat/e896a2d1e23b3595be4ec8e1079ac89b to your computer and use it in GitHub Desktop.
SRP practice P45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| використовуючи принцип SRP, розбити клас Student на 5+ дрібніших типів (не забуваючи про зв'язки між класами) | |
| class Student | |
| { | |
| public string? FirstName { get; set; } | |
| public string? Surname { get; set; } | |
| public string? Lastname { get; set; } | |
| public string? Country { get; set; } | |
| public string? Region { get; set; } | |
| public string? City { get; set; } | |
| public string? Street { get; set; } | |
| public int HouseNumber { get; set; } | |
| public char Korpus { get; set; } | |
| public short PostalCode { get; set; } | |
| public int BirthDay { get; set; } | |
| public int BirthMonth { get; set; } | |
| public int BirthYear { get; set; } | |
| public string? ZnakZodiaka { get; set; } | |
| public int StartDay { get; set; } | |
| public int StartMonth { get; set; } | |
| public int StartYear { get; set; } | |
| public int Kurs { get; set; } | |
| public string? GroupName { get; set; } | |
| public string? Specialization { get; set; } | |
| public int StudentsCount { get; set; } | |
| public int LessonsVisited { get; set; } | |
| public int LessonsLate { get; set; } | |
| public string? TeacherName { get; set; } | |
| public string? SubjectName { get; set; } | |
| public int[]? DzRates { get; set; } | |
| public float DzAverageRate { get; set; } | |
| public int[]? PracticeRates { get; set; } | |
| public float PracticeAverageRate { get; set; } | |
| public int[]? ExamRates { get; set; } | |
| public float ExamAverageRate { get; set; } | |
| public int[]? ZachetRates { get; set; } | |
| public int ZachetCount { get; set; } | |
| public float ZachetAverageRate { get; set; } | |
| public double TotalAverageRate { get; set; } | |
| } | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment