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

Suppose list list1 is [1, 2, 5] and list list2 is [2, 3, 6]. After list1.addAll(list2), list1 is __________.

a. [1, 2, 2, 3, 5, 6] b. [1, 2, 3, 5, 6] c. [1, 5] d. [2]

Computer Science & Information Technology

When you are editing a record, a(n) ________ icon is displayed in the record selector box

Fill in the blank(s) with correct word

Computer Science & Information Technology

Information such as author, title, and keywords are examples of document ________

A) attributes B) properties C) identifiers D) descriptions

Computer Science & Information Technology

In VBA, ____________________ are variables used by other procedures that the main procedure might run.

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

Computer Science & Information Technology