Example #1
0
        private static void Main(string[] args)
        {
            List<Student> students = new List<Student>(SIZE);
            students.Add(new Student("Mich", "Dm"));
            students.Add(new Student("Scott", "Liv"));
            students.Add(new Student("Max", "Bill"));

            List<Teacher> teachers = new List<Teacher>();
            teachers.Add(new Teacher("Oleg", "Basilica"));

            Degree degree = new Degree("Bachelor");
            UProgram uProgram = new UProgram("Information Technology");

            Course course = new Course("Programming with C#");
            course.AddStudents(students);
            course.AddTeacher(teachers[0]);
            degree.Course = course;
            uProgram.Degree = degree;

            course.ListStudent();

            Console.WriteLine(uProgram.ToString());
            Console.WriteLine(degree.ToString());
            Console.WriteLine(course.ToString());
        }
Example #2
0
        private static void Main(string[] args)
        {
            List <Student> students = new List <Student>(SIZE);

            students.Add(new Student("Mich", "Dm"));
            students.Add(new Student("Scott", "Liv"));
            students.Add(new Student("Max", "Bill"));

            List <Teacher> teachers = new List <Teacher>();

            teachers.Add(new Teacher("Oleg", "Basilica"));

            Degree   degree   = new Degree("Bachelor");
            UProgram uProgram = new UProgram("Information Technology");

            Course course = new Course("Programming with C#");

            course.AddStudents(students);
            course.AddTeacher(teachers[0]);
            degree.Course   = course;
            uProgram.Degree = degree;

            course.ListStudent();


            Console.WriteLine(uProgram.ToString());
            Console.WriteLine(degree.ToString());
            Console.WriteLine(course.ToString());
        }