Esempio n. 1
0
 public MyClass(Teacher[] teachers, Student[] students, string textID, string comment)
 {
     this.teachers = teachers;
     this.students = students;
     this.textID = textID;
     this.comment = comment;
 }
Esempio n. 2
0
        static void Main()
        {
            //Person
            Person person = new Person("Ivo");

            //Disciplines
            List<Discipline> subjects = new List<Discipline>();
            Discipline d = new Discipline("geografiq", 3, 3);
            Discipline d2 = new Discipline("matematika", 4, 2);
            subjects.Add(d);
            subjects.Add(d2);

            //Teachers
            Teacher t = new Teacher("Ivanov", subjects);
            Teacher[] teacher = new Teacher[1];
            teacher[0] = t;

            //Students and classes
            Student st = new Student("Ivan Ivanov", 23);
            Student st2 = new Student("Gosho Georgiev", 2, "This is comment");
            Student st3 = new Student("Pesho Petkov", 6);
            Student[] students = new Student[3];
            students[0] = st;
            students[1] = st2;
            students[2] = st3;
            MyClass firstClass = new MyClass(teacher, students, "10A");
            Console.WriteLine("Test: " + st2.Name + " " + st.ClassNumber + " " + st2.Comment);

            //School
            School testClass = new School(students);
        }
Esempio n. 3
0
 //Constructor
 public School(Student[] classStudents)
 {
     this.classStudents = classStudents;
 }
Esempio n. 4
0
 //Constructors
 public MyClass(Teacher[] teachers, Student[] students, string textID)
     : this(teachers, students, textID, null)
 {
 }