コード例 #1
0
        static void Main(string[] args)
        {
            Moodle moodle = new Moodle();

            Teacher ogretmen = new Teacher(moodle);

            moodle.teacher = ogretmen;

            moodle.students = new List <Student>();

            Student ogrenci1 = new Student(moodle);
            Student ogrenci2 = new Student(moodle);

            moodle.students.Add(ogrenci1);
            moodle.students.Add(ogrenci2);

            ogretmen.SlaytGonder("Tasarım Desenleri");
            ogretmen.SoruGonder("Mediator Pattern Soru");

            Console.ReadLine();
        }
コード例 #2
0
 public Student(Moodle moodle) : base(moodle)
 {
 }
コード例 #3
0
 public Teacher(Moodle moodle) : base(moodle)
 {
 }
コード例 #4
0
 public CourseMember(Moodle moodle)
 {
     _moodle = moodle;
 }