Draw and annotate a class hierarchy that represents various types of faculty at a university. Show what characteristics would be represented in the various classes of the hierarchy. Explain how polymorphism could play a role in the process of assigning courses to each faculty member.

What will be an ideal response?



The abstract method assignCourses is established in the FacultyMember class, ensuring that child classes will implement it. That way, each class can have a definition of assignCourses that makes sense for it (depending on the rank and other issues). A program that manages a list of various faculty member objects could then assign courses to everyone by making a polymorphic call to assignCourses for each faculty member.

Computer Science & Information Technology

You might also like to view...

It is always good to run the Document Inspector because you might have used features that are not supported by earlier versions of PowerPoint

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ button is used to replace each instance of a word found all at once in the Find what field

Fill in the blank(s) with correct word

Computer Science & Information Technology