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...

Whenever the ____ "hears" a(n) ____ event occur, the listener will perform the ____ method in response to that event.

A. ItemHandler;ItemListener;itemPerformed() B. SceneActivationListener;SceneActivation;sceneActivated() C. EventListener;EventActivation;eventActivated() D. ActionHandler;ActionListener;actionPerformed()

Computer Science & Information Technology

Data storage that can be accessed via the Internet is said to be in the cloud

Indicate whether the statement is true or false

Computer Science & Information Technology

To decrease the bullet level of an item in a SmartArt graphic, click the ________ button

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ________ is an image of an active region or window on your computer that you can paste into a document

Fill in the blank(s) with correct word

Computer Science & Information Technology