A struct is used for a Node instead of a class because:

A. overloaded operators must always be used for the data members of a node
B. we like to access the data members of the Node directly, and in a class, we should not do that
C. a pointer cannot point to an object of a class, so there would be no way to link the nodes
D. class objects cannot be created in heap memory

B

Computer Science & Information Technology

You might also like to view...

Which of the following collects, stores, manages, and interprets data from product planning, product cost, manufacturing or service delivery, marketing/sales, inventory management, shipping, payment, and any other business processes?

A. ERP B. CRM C. GRC D. ESB

Computer Science & Information Technology

The installation error message ?RAID Array Not Detected? could indicate _______________.

A. that the RAID array needs configuring B. that the drives are not properly formatted C. the lack of the proper driver for the hard drive D. the lack of support for RAID by the operating system

Computer Science & Information Technology