static void Main()
        {
            Student nelson = new Student("nelson");

            Student gavin = new Student("gavin");

            Student jason = new Student("jason");

            Course introToCs = new Course("Intro to C#");

            Course introToCpp = new Course("Intro to C++");

            introToCs.AddStudent(nelson);
            introToCs.AddStudent(gavin);
            introToCs.AddStudent(jason);

            introToCpp.AddStudent(nelson);
            introToCpp.Display();
            introToCs.Display();

            Console.ReadKey();
        }
Example #2
0
		static void Main()
		{
			Student nelson = new Student("nelson");

			Student gavin = new Student("gavin");

			Student jason = new Student("jason");

			Course introToCs = new Course("Intro to C#");

			Course introToCpp = new Course("Intro to C++");

			introToCs.AddStudent(nelson);
			introToCs.AddStudent(gavin);
			introToCs.AddStudent(jason);

			introToCpp.AddStudent(nelson);
			introToCpp.Display();
			introToCs.Display();

			Console.ReadKey();
		}