If a base class has a non-virtual member 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


a. the base class print function

Computer Science & Information Technology

You might also like to view...

What are the two broad categories of wireless communications?

What will be an ideal response?

Computer Science & Information Technology

Can you create a single PowerPoint presentation with both portrait and landscape orientations? How can you display a presentation showing two orientations using two presentations?

What will be an ideal response?

Computer Science & Information Technology

The last step in the design of a program is to decompose the identified modules.

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

Computer Science & Information Technology

If you already have images saved in your website that you would like to insert in a table, you can drag them from the Assets panel into the table cells.

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

Computer Science & Information Technology