Which of the following assignments would be a compilation error?

a. Assigning the address of a base-class object to a base-class pointer.
b. Assigning the address of a base-class object to a derived-class pointer.
c. Assigning the address of a derived-class object to a base-class pointer.
d. Assigning the address of a derived-class object to a derived-class pointer.

b. Assigning the address of a base-class object to a derived-class pointer.

Computer Science & Information Technology

You might also like to view...

Windows 7 and higher come with a feature called a(n) ________ that allows you to easily share picture, music, and video libraries with other computers on the network

Fill in the blank(s) with correct word

Computer Science & Information Technology

A moving average is a ________ of averages computed from parts of a data series

A) total B) combination C) chart D) sequence

Computer Science & Information Technology