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

A recursive method must have which of the following?

a. a statement that increments the control variable b. a control variable initialized to a starting value c. some way to control the number of time it repeats d. All of these

Computer Science & Information Technology

Windows 8 supports ________ recognition, which allows you to control the computer with gestures instead of mouse clicks

Fill in the blank(s) with correct word

Computer Science & Information Technology

Excel switches to ________ view after clicking the Header & Footer button

A) Custom B) Page Break Preview C) Normal D) Page Layout

Computer Science & Information Technology

A file stream that receives data from a file into a program is referred to as an input file stream.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology