What is the relationship into which a subclass must fit whenever inheritance is used? Provide at least three examples that illustrate this relationship.

What will be an ideal response?

Whenever inheritance is used, the subclass must fit into an "is-a" relationship with the base class. For example, an on-campus student (subclass) is a student (base class). A subclass is always in an "is-a" relationship with the base class. Further examples include: An hourly worker (subclass) is an employee (base class); a scholarship athlete (subclass) is a student (base class); a computer teacher (subclass) is a faculty member (base class).

Computer Science & Information Technology

You might also like to view...

6, 8, 4, 3, and 1 are inserted into a data structure in that order. An item is deleted using only a basic data structure operation. If the deleted item is a 1, the data structure cannot be a

a. vector b. priority queue c. queue d. STL set e. stack

Computer Science & Information Technology

An audio file's properties include _____ as shown in the Preview/Properties dialog box.

A. keywords B. file type C. file name D. all of the above

Computer Science & Information Technology