public static string GetShortName(Student person) { StringBuilder shortName = new StringBuilder(person.GetLastName() + " "); shortName.Append(person.GetName()[0] + "."); return(shortName.ToString()); }
public static void PrintStudent(Student person) { Console.Write($"\nStudent: {person.GetName()} {person.GetLastName()} \nId: {person.GetStudNumber()}" + $"\nStudent since: {person.GetEnterDate().ToShortDateString()}"); }