コード例 #1
0
 public SchoolClass(Student[] students, Teacher[] teachers, string nameOfClass, string freeText)
 {
     this.Students = students;
     this.Teachers = teachers;
     this.NameOfClass = nameOfClass;
     this.freeText = freeText;
 }
コード例 #2
0
ファイル: Test.cs プロジェクト: ilian-ivanov/Telerik-Academy
        static void Main()
        {
            Discipline dis = new Discipline("Math", 8, 10);
            Discipline[] disciplines = new Discipline[1];
            disciplines[0] = dis;

            Person men = new Person("Pesho");

            Student ivan = new Student("Ivan", 13);
            Student[] students = new Student[1];
            students[0] = ivan;

            Teacher first = new Teacher("Ivanov", disciplines);
            Teacher[] teachers = new Teacher[1];
            teachers[0] = first;

            ivan.FreeText = "pesho";

            SchoolClass classA = new SchoolClass(students, teachers, "12a");
            SchoolClass[] classes = new SchoolClass[1];

            School school = new School(classes);

            Console.WriteLine(ivan.Name);
            Console.WriteLine(men.Name);
        }
コード例 #3
0
 // CONSTRUCTORS ----------------------------------------------------------------
 public SchoolClass(Student[] students, Teacher[] teachers, string nameOfClass)
     : this(students, teachers, nameOfClass, null)
 {
 }