Esempio n. 1
0
        public static void Main()
        {
            Student simeon = new Student("Simeon", 1290122);
            Student petko = new Student("Petko", 1290871);
            Student joro = new Student("Joro", 1294424);

            Discipline java = new Discipline("Java", new HashSet<Student>() { simeon, petko }, 15);
            Discipline php = new Discipline("PHP", new HashSet<Student>() { petko, joro }, 10);

            Teacher nakov = new Teacher("Nakov", new HashSet<Discipline>() { java, php });
            Teacher karamfilov = new Teacher("Karamfilov", new HashSet<Discipline>() { php }, "Very punctual!");

            Class schClass = new Class("Robotics", new HashSet<Teacher>() { nakov, karamfilov }, new HashSet<Student>() { simeon, petko, joro });
            School MIT = new School(new HashSet<Class>() { schClass });
        }        
        static void Main(string[] args)
        {
            Student dani = new Student("Daniel", 19, 1233654789, "ambicious");
            Student vili = new Student("Vili", 19, 12323141231);

            IList<Student> students = new List<Student>() { dani, vili };

            Discipline math = new Discipline("mathemarics", 15, students, "hard...");

            Teacher minkova = new Teacher("Minkova", 45, new List<Discipline>() { math }, "very bad");

            Class september = new Class(students, new List<Teacher>() { minkova }, "September #2");

            School softUni = new School(new List<Class>() { september });

        }
Esempio n. 3
-1
        public static void Main()
        {
            Student ivan = new Student("Ivan", 1234567);
            Student george = new Student("George", 1290871);
            Student ani = new Student("Ani", 1290432);
            // Student mike = new Student("mike", 1290871);

            Discipline java = new Discipline("Java", new HashSet<Student>() { ivan, george }, 15);
            Discipline php = new Discipline("PHP", new HashSet<Student>() { ivan, ani }, 10);

            Teacher nakov = new Teacher("Nakov", new HashSet<Discipline>() { java, php });
            Teacher karamfilov = new Teacher("Karamfilov", new HashSet<Discipline>() { php }, "Very punctual!");

            Class schClass = new Class("Robotics", new HashSet<Teacher>() { nakov, karamfilov }, new HashSet<Student>() { ivan, george, ani });
            School MIT = new School(new HashSet<Class>() { schClass });
        }