Assume that Publication is the root class of an inheritance tree. You want to form a linked list of different publications in the inheritance tree, including Book, Report, Newspaper, etc. What is the best way to create a linked list using PublListNode and Publication classes? a. The Publication class is derived from the PublListNode class. b. The PublListNode class is derived from the Publication class. c. The Publication class contains the PublListNode class. d. The PublListNode class contains the Publication class.

Respuesta :

Answer:

The best way to create a linked list using PublListNode and Publication classes is ensuring that:

d. The PublListNode class contains the Publication class.

Step-by-step explanation:

A linked list contains a set of address-connected nodes (elements).  The first node is called a header address, while the last node is called a null address. A linked list can be a single list (linear list), double list, multiple linked list, or circular linked list.  The PublListNode is a type of multiple linked list.  It forms a linked list of different publications using an inheritance tree.