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
You might also like to view...
What are the two broad categories of wireless communications?
What will be an ideal response?
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?
The last step in the design of a program is to decompose the identified modules.
Answer the following statement true (T) or false (F)
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)