예제 #1
0
        static void Main()
        {
            SchoolClass simpleClass = new SchoolClass("10 \'A\'", teachers, studentsInClass);
            AddTechersToList();
            AddStudents();
            Console.WriteLine(simpleClass.ToString());

            simpleClass.Teachers.Add(new Teacher("Koceto", new List<Discipline>()
                                        { new Discipline(DisciplineName.Chemistry,20,20)}));
            simpleClass.Students.Add(new Student("Dimcho", 3));
            Console.WriteLine(simpleClass.ToString());
        }
예제 #2
0
        static void Main()
        {
            SchoolClass simpleClass = new SchoolClass("10 \'A\'", teachers, studentsInClass);

            AddTechersToList();
            AddStudents();
            Console.WriteLine(simpleClass.ToString());

            simpleClass.Teachers.Add(new Teacher("Koceto", new List <Discipline>()
            {
                new Discipline(DisciplineName.Chemistry, 20, 20)
            }));
            simpleClass.Students.Add(new Student("Dimcho", 3));
            Console.WriteLine(simpleClass.ToString());
        }
예제 #3
0
 //Method that add classes
 public void AddClass(SchoolClass newClass)
 {
     this.classes.Add(newClass);
 }