Esempio n. 1
0
        public static void Main()
        {
            var firstDiscipline  = new Discipline("HTML", 10, 10);
            var secondDiscipline = new Discipline("JavaScript", 25, 25);
            var thirdDiscipline  = new Discipline("CSS", 15, 5);

            var fourthDiscipline = new Discipline("OOP", 15, 20);

            fourthDiscipline.AddComment("Best course ever");

            var fifthDiscipline = new Discipline("C#", 20, 25);

            Teacher firstTeacher  = new Teacher("Ivancho", firstDiscipline, secondDiscipline, thirdDiscipline);
            Teacher secondTeacher = new Teacher("Marcheto", secondDiscipline, fourthDiscipline);

            Teacher thirdTeacher = new Teacher("Bojana", fifthDiscipline, thirdDiscipline);

            thirdTeacher.AddComment("Very lazy");

            Teacher fourthTeacher = new Teacher("Joreto", secondDiscipline, thirdDiscipline, fourthDiscipline, fifthDiscipline);
            Teacher fifthTeacher  = new Teacher("Albena", fourthDiscipline, fifthDiscipline, secondDiscipline);

            Class classA = new Class("A", firstTeacher, secondTeacher, thirdTeacher);

            classA.AddComment("The best class of the academy");

            Class classB = new Class("B", fourthTeacher, fifthTeacher);

            School telerikAcademy = new School();

            telerikAcademy.AddClass(classA);
            telerikAcademy.AddClass(classB);
        }
Esempio n. 2
0
        public static void Main()
        {
            var firstDiscipline = new Discipline("HTML", 10, 10);
            var secondDiscipline = new Discipline("JavaScript", 25, 25);
            var thirdDiscipline = new Discipline("CSS", 15, 5);

            var fourthDiscipline = new Discipline("OOP", 15, 20);
            fourthDiscipline.AddComment("Best course ever");

            var fifthDiscipline = new Discipline("C#", 20, 25);

            Teacher firstTeacher = new Teacher("Ivancho", firstDiscipline, secondDiscipline, thirdDiscipline);
            Teacher secondTeacher = new Teacher("Marcheto", secondDiscipline, fourthDiscipline);

            Teacher thirdTeacher = new Teacher("Bojana", fifthDiscipline, thirdDiscipline);
            thirdTeacher.AddComment("Very lazy");

            Teacher fourthTeacher = new Teacher("Joreto", secondDiscipline, thirdDiscipline, fourthDiscipline, fifthDiscipline);
            Teacher fifthTeacher = new Teacher("Albena", fourthDiscipline, fifthDiscipline, secondDiscipline);

            Class classA = new Class("A", firstTeacher, secondTeacher, thirdTeacher);
            classA.AddComment("The best class of the academy");

            Class classB = new Class("B", fourthTeacher, fifthTeacher);

            School telerikAcademy = new School();
            telerikAcademy.AddClass(classA);
            telerikAcademy.AddClass(classB);
        }
        static void Main()
        {
            Discipline historyOfFilm = new Discipline("History of Film", 10, 15);
            historyOfFilm.AddComment(@"Learn the history of film");

            Discipline filmDirecting = new Discipline("Film Directing",15,20);
            filmDirecting.AddComment(@"Learn fundamentals of film directing");

            Teacher pedro = new Teacher("Pedro", "Almodovar", new [] { historyOfFilm, filmDirecting });

            Class newClass = new Class("8B", pedro);
            newClass.AddComment("Otlichnici");
            Console.WriteLine(newClass.ToString());

            Console.WriteLine("Students:");
            Student gosho = new Student("Gosho", "Goshev", 1);
            Console.WriteLine(gosho);
        }
Esempio n. 4
0
        static void Main()
        {
            Discipline historyOfFilm = new Discipline("History of Film", 10, 15);

            historyOfFilm.AddComment(@"Learn the history of film");

            Discipline filmDirecting = new Discipline("Film Directing", 15, 20);

            filmDirecting.AddComment(@"Learn fundamentals of film directing");

            Teacher pedro = new Teacher("Pedro", "Almodovar", new [] { historyOfFilm, filmDirecting });

            Class newClass = new Class("8B", pedro);

            newClass.AddComment("Otlichnici");
            Console.WriteLine(newClass.ToString());

            Console.WriteLine("Students:");
            Student gosho = new Student("Gosho", "Goshev", 1);

            Console.WriteLine(gosho);
        }