Ejemplo n.º 1
0
    public static void Main()
    {
        LocalCourse localCourse = new LocalCourse("Databases");

        Console.WriteLine(localCourse);

        localCourse.Lab = "Enterprise";
        Console.WriteLine(localCourse);

        localCourse.Students = new List <string>()
        {
            "Peter", "Maria"
        };
        Console.WriteLine(localCourse);

        localCourse.TeacherName = "Svetlin Nakov";
        localCourse.Students.Add("Milena");
        localCourse.Students.Add("Todor");
        Console.WriteLine(localCourse);

        OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev", new List <string>()
        {
            "Thomas", "Ani", "Steve"
        });

        Console.WriteLine(offsiteCourse);
        offsiteCourse.Town = "Sofia";
        Console.WriteLine(offsiteCourse);
    }
Ejemplo n.º 2
0
        public IOffsiteCourse CreateOffsiteCourse(string name, ITeacher teacher, string town)
        {
            IOffsiteCourse offsiteCourse = new OffsiteCourse(name, town);

            offsiteCourse.Teacher = teacher;
            return(offsiteCourse);
        }
Ejemplo n.º 3
0
    public IOffsiteCourse CreateOffsiteCourse(string name, ITeacher teacher, string town)
    {
        //returns a offsiteCourse object
        IOffsiteCourse newLocalCourse = new OffsiteCourse(name, teacher, town);

        return(newLocalCourse);
    }
Ejemplo n.º 4
0
    public IOffsiteCourse CreateOffsiteCourse(string name, ITeacher teacher, string town)
    {
        //returns a offsiteCourse object
        IOffsiteCourse newLocalCourse = new OffsiteCourse(name, teacher, town);

        return newLocalCourse;
    }
        static void Main(string[] args)
        {
            Course c1 = new LocalCourse("OOP2", "1234");

            c1.AddTopic("Using Classes and Objects", "Defining Classes", "OOP Principles", "Property");

            Course c2 = new LocalCourse("OOAD", "5678");

            c2.AddTopic("Introduction to Modelling", "Introduction to UML", "Use Case Diagram", "Class Diagram");

            Course c3 = new OffsiteCourse("Cyber Security", "Sylhet");

            c3.AddTopic("Security", "Encryption", "Algorithm", "Cyber Ethics");

            Teacher t1 = new Teacher("Victor Stany Rozario", "15-34939-1");

            t1.AddCourse(c1, c2);
            Teacher t2 = new Teacher("SUPTA RICHARD PHILIP", "14-54463-2");

            t2.AddCourse(c3);

            Student s1 = new Student("Borno", "18-36449-1");

            s1.AddTeacher(t2);
            s1.AddTeacher(t1);


            TeacherDetails(t1);
            TeacherDetails(t2);
            StudentDetails(s1);
        }
        private static void Main()
        {
            LocalCourse localCourse = new LocalCourse("DateBase", "Petar Petrov", "OpenSource");
            Console.WriteLine(localCourse);

            localCourse.AddStudent("Peter");
            localCourse.AddStudent("Maria");
            Console.WriteLine(localCourse);

            localCourse.AddStudent("Milena");
            localCourse.AddStudent("Todor");
            Console.WriteLine(localCourse);

            OffsiteCourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev", "Plovdiv");
            offsiteCourse.AddStudent("Thomas");
            offsiteCourse.AddStudent("Ani");
            offsiteCourse.AddStudent("Steve");
            Console.WriteLine(offsiteCourse);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Defines the entry point of the application.
        /// </summary>
        public static void Main()
        {
            ICourse localCourse = new LocalCourse("Databases", "Svetlin Nakov", "Enterprise");
            Console.WriteLine(localCourse);

            localCourse.Students.Add("Peter");
            localCourse.Students.Add("Maria");
            Console.WriteLine(localCourse);

            localCourse.Students.Add("Milena");
            localCourse.Students.Add("Todor");
            Console.WriteLine(localCourse);

            ICourse offsiteCourse = new OffsiteCourse("PHP and WordPress Development", "Mario Peshev");

            offsiteCourse.Students.Add("Thomas");
            offsiteCourse.Students.Add("Ani");
            offsiteCourse.Students.Add("Steve");
            Console.WriteLine(offsiteCourse);
        }
    static void Main()
    {
        LocalCourse localCourse = new LocalCourse("Databases");
        Console.WriteLine(localCourse);

        localCourse.Lab = "Enterprise";
        Console.WriteLine(localCourse);

        localCourse.Students = new List<string>() { "Peter", "Maria" };
        Console.WriteLine(localCourse);

        localCourse.TeacherName = "Svetlin Nakov";
        localCourse.Students.Add("Milena");
        localCourse.Students.Add("Todor");
        Console.WriteLine(localCourse);

        OffsiteCourse offsiteCourse = new OffsiteCourse(
            "PHP and WordPress Development", "Mario Peshev",
            new List<string>() { "Thomas", "Ani", "Steve" });
        Console.WriteLine(offsiteCourse);
    }
Ejemplo n.º 9
0
 public IOffsiteCourse CreateOffsiteCourse(string name, ITeacher teacher, string town)
 {
     IOffsiteCourse offsiteCourse = new OffsiteCourse(name, town);
     offsiteCourse.Teacher = teacher;
     return offsiteCourse;
 }
Ejemplo n.º 10
0
        public IOffsiteCourse CreateOffsiteCourse(string name, ITeacher teacher, string town)
        {
            OffsiteCourse myOffsiteCourse = new OffsiteCourse(name, teacher, town);

            return myOffsiteCourse;
        }