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

Microsoft Access is an example of a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

A filter in Excel displays only a portion of the table data based on matching criteria

Indicate whether the statement is true or false

Computer Science & Information Technology