public static void PrintStudent(Student person) { Console.Write($"\nStudent: {person.GetName()} {person.GetLastName()} \nId: {person.GetStudNumber()}" + $"\nStudent since: {person.GetEnterDate().ToShortDateString()}"); }
public static int GetYear(Student person) { return(DateTime.Today.Year - person.GetEnterDate().Year + 1); }