If a base class has a virtual function named print, and a pointer variable of that class is pointing to a derived object, then the code ptr->print( ); calls

a. the base class print function
b. the derived print function
c. both the derived and base print functions
d. it causes a run-time error


b. the derived print function

Computer Science & Information Technology

You might also like to view...

You can display ____________________ to reveal hidden symbols that indicate paragraph breaks, spaces, and tab stops.

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

Computer Science & Information Technology

Assigning an object of a derived class to a variable of a base class is called:

(a) static binding (b) dynamic binding (c) upcasting (d) downcasting

Computer Science & Information Technology

You can apply a ________ to the entire PivotTable report

A) PivotReport Style B) PivotChart Style C) PivotTable Style D) PivotStyle

Computer Science & Information Technology

The first phase of risk management is _________.

A. risk identification B. design C. risk control D. risk evaluation

Computer Science & Information Technology