Exemplo n.º 1
0
        public static void Main()
        {
            School school = new School("Iconomics High School");

            Class classA = new Class("12 - A");
            Class classB = new Class("12 - B");
            Class classV = new Class("12 - V");

            Teacher firstTeacher = new Teacher("G-ja Angelova");
            Teacher secondTeacher = new Teacher("G-n Pavlov");
            Teacher thirdTeacher = new Teacher("G-n Marinov");
            Teacher fourthTeacher = new Teacher("G-ja Becheva");

            Student petq = new Student("Petq Styanova", 25);
            Student gosho = new Student("Georgi Georgiev", 8);
            Student ani = new Student("Angelina Hristoskova", 1);
            Student sashka = new Student("Sashka Spasova", 27);
            Student veska = new Student("Veska Vasileva", 5);
            Student didi = new Student("Diana Prodanova", 10);

            Discipline math = new Discipline("Matematic", 3, 5);
            Discipline micro = new Discipline("Microeconomic", 2, 2);
            Discipline manag = new Discipline("Management", 3, 1);
            Discipline market = new Discipline("Marketing", 4, 1);

            school.AddClass(classA);
            school.AddClass(classB);
            school.AddClass(classV);

            classA.AddStudentInClass(petq);
            classA.AddStudentInClass(gosho);
            classB.AddStudentInClass(ani);
            classB.AddStudentInClass(sashka);
            classV.AddStudentInClass(veska);
            classV.AddStudentInClass(didi);

            classA.AddTeacherInClass(firstTeacher);
            classA.AddTeacherInClass(secondTeacher);
            classB.AddTeacherInClass(thirdTeacher);
            classV.AddTeacherInClass(fourthTeacher);

            firstTeacher.AddDiscipline(math);
            secondTeacher.AddDiscipline(micro);
            thirdTeacher.AddDiscipline(manag);
            fourthTeacher.AddDiscipline(market);

            Console.WriteLine(school);
        }
Exemplo n.º 2
0
 public void AddTeacherInClass(Teacher teacher)
 {
     this.teachers.Add(teacher);
 }