예제 #1
0
파일: TestSchool.cs 프로젝트: CuST0M1z3/OOP
        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();
        }
예제 #2
0
파일: School.cs 프로젝트: CuST0M1z3/OOP
 public void AddClass(Class classes)
 {
     this.Classes.Add(classes);
 }