public static void TestMethod() { StudentsClass studentsClass = new StudentsClass(); studentsClass.AddStudent(new Student("Georgi", 8)); studentsClass.AddTeacher(new Teacher("Pesho", new List <Discipline>())); Console.WriteLine(studentsClass); studentsClass.RemoveStudent(new Student("Georgi", 8)); Console.WriteLine(studentsClass); studentsClass.RemoveTeacher(new Teacher("Pesho", new List <Discipline>())); Console.WriteLine(studentsClass); }
public void AddTeacher(string name, StudentsClass sClass) { Teacher teacher = sClass.AddTeacher(name); this.Teachers.Add(teacher); }
public void AddClass(int grade, char letter) { StudentsClass newClass = new StudentsClass(grade, letter); this.StudentClasses.Add(newClass); }