Beispiel #1
0
        public static void Main()
        {
            School mySchool = new School();
            Class firstClass = new Class("12A");
            Teacher firstTeacher = new Teacher("Niki");
            Discipline firstDiscipline = new Discipline("OOP", 3, 3);
            Student firstStudent = new Student("Ivan", 5);
            Student secondStudent = new Student("Kaloqn", 15);

            mySchool.AddClass(firstClass);
            firstClass.AddTeacher(firstTeacher);
            firstTeacher.AddDiscipline(firstDiscipline);
            firstClass.AddStudent(firstStudent);
            firstClass.AddStudent(secondStudent);

            Console.WriteLine(firstClass.ToString());
            Console.WriteLine();
        }
Beispiel #2
0
 public void AddStudent(Student student)
 {
     this.Students.Add(student);
 }