public static void Main()
        {
            Student student1 = new Student("Aaaa Bbb", 1);
            Student student2 = new Student("Cccc Ddd", 2);
            Student student3 = new Student("Eeee Fff", 3, "ZZZZZZZZZZZZZ");

            Teacher teacher1 = new Teacher("Zzzz yyyy");
            Teacher teacher2 = new Teacher("Xxxx wwww");

            Discipline oop = new Discipline("oop", 12, 10, "AAAAAAAA");
            Discipline csharp = new Discipline("Csharp", 20, 14);
            Discipline java = new Discipline("Java", 15, 16);

            teacher1.AddDisicipline(oop);
            teacher1.AddDisicipline(csharp);
            teacher2.AddDisicipline(oop);
            teacher1.ListOfDisciplines.Add(java);
            School mySchool = new School();
            ClassInSchool myClass = new ClassInSchool("MyClassName");
            myClass.AddStudent(student1);
            myClass.AddStudent(student2);
            myClass.AddStudent(student3);
            myClass.RemoveStudent(student1);
            myClass.AddTeacher(teacher1);
            myClass.AddTeacher(teacher2);
            mySchool.AddClass(myClass);
            System.Console.WriteLine(myClass);
        }
Example #2
0
        static void Main()
        {
            Student student1 = new Student("Aaaa Bbb", 1);
            Student student2 = new Student("Cccc Ddd", 2);
            Student student3 = new Student("Eeee Fff", 3, "ZZZZZZZZZZZZZ");

            Teacher teacher1 = new Teacher("Zzzz yyyy");
            Teacher teacher2 = new Teacher("Xxxx wwww");

            Discipline oop    = new Discipline("oop", 12, 10, "AAAAAAAA");
            Discipline Csharp = new Discipline("Csharp", 20, 14);
            Discipline Java   = new Discipline("Java", 15, 16);

            teacher1.AddDisicipline(oop);
            teacher1.AddDisicipline(Csharp);
            teacher2.AddDisicipline(oop);
            teacher1.ListOfDisciplines.Add(Java);
            School        MySchool = new School();
            ClassInSchool MyClass  = new ClassInSchool("MyClassName");

            MyClass.AddStudent(student1);
            MyClass.AddStudent(student2);
            MyClass.AddStudent(student3);
            MyClass.AddTeacher(teacher1);
            MyClass.AddTeacher(teacher2);
            MySchool.AddClass(MyClass);
            System.Console.WriteLine(MyClass);
        }