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

You want to see what web pages the suspect has been visiting. Which of the following should you check?

A) Index.dat file B) Security log C) My Computer D) System log

Computer Science & Information Technology

Because the electronic signals controlling a keyboard, a display, a printer, and a disk drive are different, each peripheral device must have its own __________.

a. channel b. port c. bus d. interface

Computer Science & Information Technology

A(n) ____________________ field is a text field in which the input is masked on the screen.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What does the acronym W3C stand for?

A. World Wide Web Consortium B. Worldwide Weekly Conference C. Third World Coalition D. World Wide Web Colloquium

Computer Science & Information Technology