15.7. Faculty

Next, we'll create the Faculty class, which is a new class to the SRS used to populate a Dictionary with Professor object references by reading their pertinent information from two data files:

  • Faculty.dat, the primary file used as the basis for creating the Professors

  • TeachingAssignments.dat, a secondary file used for linking Professor objects to the Section objects that they are assigned to teach, and vice versa

Since the structure and behaviors of the Faculty class are so similar to those of CourseCatalog, we won't explain the Faculty class in detail, but will discuss the FindProfessor method and point out one interesting nuance regarding the ReadAssignmentData method.

15.7.1. FindProfessor Method

The FindProfessor method searches ...

Get Beginning C# 2008 Objects: From Concept to Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.