Ejemplo n.º 1
0
        public override string ToString()
        {
            string result = $"Group: {Name}\r\n\tLector:\r\n\t\t{Lector.ToString()}\r\n\t\t\tStudents:";

            foreach (Student student in Students)
            {
                result += $"\r\n\t\t\t\t{student.ToString()}";
            }
            return(result);
        }
Ejemplo n.º 2
0
 public Group(string name, Lector lector, Student[] students)
 {
     Name     = name;
     Lector   = lector;
     Students = students;
 }