Пример #1
0
        static void Main(string[] args)
        {
            Academy EAL = new Academy("EAL");

            Student Nikolaj = new Student(EAL, "Nikolaj");
            Student Kasper  = new Student(EAL, "Kasper");
            Student Victor  = new Student(EAL, "Victor");

            EAL.Attach(Nikolaj);
            EAL.Attach(Kasper);
            EAL.Attach(Victor);

            EAL.Message = "BAJER PÅ FREDAG GUTTER";
            EAL.Message = "Ignorer sidste besked #jebaited";
            Console.ReadKey(false);
        }
Пример #2
0
 public Student(Academy subject, string name)
 {
     Name         = name;
     this.subject = subject;
 }