1.Have Blackboard and Canvas share their course teachers
ACompare the instructor references before the change
Object Diagram - Separate Instructor Objects
NNew
CChanged
RRemoved
BModify newBlackboardButton_Click in MainWindow.xaml.cs
Winston’s services are no longer needed. Remove his creation and initialization statements so the student’s teacher, Alan, can fulfill both roles.
1After the teacher’s CertificationExam.Score assignment, update PrimaryInstructor to refer to the existing Course.Teacher, as shown in the object diagram below
CIn newCanvasButton_Click, do the same for Canvas as you did for Blackboard
Object Diagram - Shared Instructor Objects
NNew
CChanged
RRemoved
DCheck Your Work (Shared Instructor Objects):
1Set a breakpoint at the end of each New button handler and create the corresponding grade book
2Use object.ReferenceEquals in Watch to confirm that PrimaryInstructor and CurrentStudent.Course.Teacher refer to the same object in each grade book
3Temporarily change the instructor’s Name through PrimaryInstructor in the debugger. Ensure that the change appears through Course.Teacher as well, then restart to discard the temporary change